import React from "react" ; import { View } from "react-native" ; interface CenterProps { } export const Center = ( { children } ) => { return ( < View style = { { flex : 1 , alignItems : "center" , justifyContent : "center" , width : "100%" } } > { children } < /View>); } ;