import { StatusBar } from 'expo-status-bar' ; import * as React from 'react' ; import { Platform , StyleSheet , Text , View } from 'react-native' ; export default function ModalScreen ( ) { return ( < View style = { styles . container } > < Text style = { styles . title } > Modal < /Text> < View style = { styles . separator } / > { } < StatusBar style = { Platform . OS === 'ios' ? 'light' : 'auto' } / > < /View>); } ModalScreen . navigationOptions = { presentation : 'modal' , } ; const styles = StyleSheet . create ( { container : { flex : 1 , alignItems : 'center' , justifyContent : 'center' , } , title : { fontSize : 20 , fontWeight : 'bold' , } , separator : { marginVertical : 30 , height : 1 , width : '80%' , } , } ) ;