Skip to content

Automatically adjust the screen to remain the focused input visible while the virtual keyboard is displayed.

Notifications You must be signed in to change notification settings

caioedut/react-native-input-keyboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Native Input Keyboard

This component will automatically adjust the screen to remain the focused input visible while the virtual keyboard is displayed.

npm version

Installation

Expo

expo install react-native-input-keyboard

Other

npm install react-native-input-keyboard
# OR
yarn add react-native-input-keyboard
# OR
pnpm add react-native-input-keyboard

Usage

import { TextInput } from 'react-native';
import InputKeyboard from 'react-native-input-keyboard';

function Screen() {
    return (
      <InputKeyboard>
        {/* ... */}
        <TextInput />
        {/* ... */}
      </InputKeyboard>
    )
}

Props

Inherits View Props.

Prop Type Default Description
enabled boolean true Enable or disable the component behaviors.
offset number 0 This is the distance between the input and the keyboard.
onPress function Keyboard.dismiss The behavior when users press outside the input.

About

Automatically adjust the screen to remain the focused input visible while the virtual keyboard is displayed.

Resources

Stars

Watchers

Forks

Packages

No packages published