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