import React , { PropsWithChildren } from 'react' ; import { View , ViewProps , StyleSheet } from 'react-native' ; import { layout } from '../common/styleguide' ; const ContentContainer = ( { children , style } ) => ( < View style = { [ styles . container , style ] } > { children } < /View>); const styles = StyleSheet . create ( { container : { flex : 1 , width : '100%' , maxWidth : layout . maxWidth , margin : 'auto' , } , } ) ; export default ContentContainer ;