Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. import React from 'react';
  2. import {KeyboardAvoidingView, TouchableWithoutFeedback, Keyboard} from 'react-native';
  3.  
  4. const Container = (props) => {
  5. return (
  6. <KeyboardAvoidingView behavior="padding" style={[{flex:1}]}>
  7. <TouchableWithoutFeedback onPress={Keyboard.dismiss} accessible={false}>
  8. {props.children}
  9. </TouchableWithoutFeedback>
  10. </KeyboardAvoidingView>
  11. )
  12. };
  13.  
  14. export default Container;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement