import React from "react";
import { SafeAreaView, StyleSheet, TextInput } from "react-native";
const UselessTextInput = () => {
const [text, onChangeText] = React.useState("Useless Text");
const [number, onChangeNumber] = React.useState(null);
return (
<SafeAreaView>
<TextInput
style={styles.input}
onChangeText={onChangeText}
value={text}
/>
<TextInput
style={styles.input}
onChangeText={onChangeNumber}
value={number}
placeholder="useless placeholder"
keyboardType="numeric"
/>
</SafeAreaView>
);
};
const styles = StyleSheet.create({
input: {
height: 40,
margin: 12,
borderWidth: 1,
},
});
export default UselessTextInput;
'공부기록' 카테고리의 다른 글
공부기록, 2021-08-03(recoil 사용예제) (0) | 2021.08.03 |
---|---|
공부기록, 2021-08-02(recoil기본세팅) (0) | 2021.08.02 |
공부기록, 2021-07-29(react) (0) | 2021.07.29 |
공부기록, 2021-07-27(react) (0) | 2021.07.27 |
공부기록, 2021-07-26(react) (0) | 2021.07.26 |