1.0.4 • Published 9 months ago

rn-keyboard-view v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

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

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago