The iOS Text Input above the Keyboard Example
An example of using React Native InputAccessoryView.
The InputAccessoryView
is a component which enables customization of the keyboard input accessory view on iOS
. The input accessory view is displayed above the keyboard whenever a TextInput
has focus. This component can be used to create custom toolbars.
It can also be used to create sticky text inputs (text inputs which are anchored to the top of the keyboard). To do this, wrap a TextInput
with the InputAccessoryView
component, and don't set a nativeID
.
Installation
- Clone the repo
- Change directory to the app:
cd ios-input-above-keyboard
- Install all dependencies:
yarn install
- Run the app:
yarn start
Expo
You can also run this app with Expo.