text input react native password code example

Example 1: react native password input

<TextInput secureTextEntry={true} style={styles.default} value="abc" />

Example 2: 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 3: text input phone number react native

npm i react-native-phone-input --save