import * as React from 'react'; import { Modal, StyleSheet, Text, View } from 'react-native'; import Button from '../components/Button'; import { Layout } from '../constants'; interface State { modalVisible: boolean; animationType?: 'none' | 'slide' | 'fade'; } // See: https://github.com/expo/expo/pull/10229#discussion_r490961694 // eslint-disable-next-line @typescript-eslint/ban-types export default class ModalScreen extends React.Component<{}, State> { static navigationOptions = { title: 'Modal', }; readonly state: State = { modalVisible: false, animationType: 'none', }; render() { return ( { alert('Modal has been closed.'); }}> { alert('Modal has been closed.'); }}> Hello World!