Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from 'react';
- import {KeyboardAvoidingView, TouchableWithoutFeedback, Keyboard} from 'react-native';
- const Container = (props) => {
- return (
- <KeyboardAvoidingView behavior="padding" style={[{flex:1}]}>
- <TouchableWithoutFeedback onPress={Keyboard.dismiss} accessible={false}>
- {props.children}
- </TouchableWithoutFeedback>
- </KeyboardAvoidingView>
- )
- };
- export default Container;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement