import React from 'react'; import LinearGradient from 'react-native-linear-gradient'; import { StyleSheet, TouchableWithoutFeedback, Keyboard, ViewProps, SafeAreaView, } from 'react-native'; import {CenteredView} from '../common'; interface BackgroundProps extends ViewProps { centered?: boolean; } const Background: React.FC = (props) => { return ( {props.centered ? ( {props.children} ) : ( {props.children} )} ); }; const styles = StyleSheet.create({ container: { flex: 1, }, }); export default Background;