react-native-keyboard-handle-view
v0.0.1
Published
View component, for react-native, which dismisses keyboard when touched and scrolls to focused TextInput
Downloads
2
Readme
react-native-keyboard-handle-view
📦 Installation
npm install react-native-keyboard-handle-view
# Or using yarn
yarn add react-native-keyboard-handle-view
🥑 Usage
import React, { useState } from 'react';
import { TextInput } from 'react-native';
import KeyboardHandleView from 'react-native-keyboard-handle-view';
const App: React.FC = () => {
const [text, setText] = useState<string>('');
return (
<KeyboardHandleView>
<TextInput
value={text}
onChangeText={setText}
/>
</KeyboardHandleView>
);
};
🍻 Components Included
KeyboardHandleView
import KeyboardHandleView from 'react-native-keyboard-handle-view';
KeyboardDismissView
import { KeyboardDismissView } from 'react-native-keyboard-handle-view';
KeyboardAwareScrollView
Exported from the dependency react-native-keyboard-aware-scroll-view
import { KeyboardAwareScrollView } from 'react-native-keyboard-handle-view';