react native input placeholder code example
Example 1: react native input
import React, { Component } from 'react';
import { TextInput } from 'react-native';
export default function UselessTextInput() {
const [value, onChangeText] = React.useState('Useless Placeholder');
return (
<TextInput
style={{ height: 40, borderColor: 'gray', borderWidth: 1 }}
onChangeText={text => onChangeText(text)}
value={value}
/>
);
}
Example 2: placeholder react native
<TextInput placeholder="This is a Placeholder, define what to enter here to the user"></TextInput>
Example 3: text input phone number react native
npm i react-native-phone-input --save