Skip to content

Instantly share code, notes, and snippets.



Last active Sep 29, 2019
What would you like to do?
App.js file in React Native which contains the KeyboardAvoidingView component to avoid keyboard overlapping the input fields
import {KeyboardAvoidingView, ScrollView, Platform} from 'react-native';
export default class App extends Component{
<KeyboardAvoidingView behavior={Platform.Os == "ios" ? "padding" : "height" } enabled>
/* add your Screen Ui Components here */
expo: {
"androidStatusBar": {
"backgroundColor": "#A17EEB"
android: {
//make sure you add it outside the android key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment