Last active
April 30, 2020 00:54
-
-
Save FarazPatankar/f8f602c3831d1d5dc1957575505a5674 to your computer and use it in GitHub Desktop.
Setting up the keyboard avoiding view in React Native
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { KeyboardAvoidingView } from 'react-native'; | |
// Based on the behavior you need, you might have to update the prop accordingly. | |
// https://docs.expo.io/versions/latest/react-native/keyboardavoidingview/#behavior | |
<KeyboardAvoidingView behavior="padding"> | |
// Existing UI code | |
</KeyboardAvoidingView> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment