rn-keyboard-view
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

RN-Keyboard-View

Installation

  • You should be fine with most of the React Native versions
  • No linking required
npm i rn-keyboard-view

Usage

  • Import it
import KeyboardView from 'rn-keyboard-view';
  • Use defer to wait between different input focuses
const [isFocused, setIsFocused] = useState(false);
const deferredFocus = useDeferredValue(isFocused);
  • Set the focus state from your inputs
const onFocus = () => setIsFocused(true);
const onBlur = () => setIsFocused(false);
  • Use the component and add your code and you are set :)
<KeyboardView isFocused={deferredFocus}>
{/* YOUR CODE */}
</KeyboardView>

Props

REQUIRED

isFocused: boolean

OPTIONAL

scrollEnabled: boolean

License

MIT

Package Sidebar

Install

npm i rn-keyboard-view

Weekly Downloads

2

Version

1.0.4

License

MIT

Unpacked Size

2.98 kB

Total Files

4

Last publish

Collaborators

  • furkannarin