const _ = require('lodash'); const React = require('react'); const { Component } = require('react'); const { View, Text, Button } = require('react-native'); const { Navigation } = require('react-native-navigation'); const testIDs = require('../testIDs'); class ModalScreen extends Component { static get options() { return { statusBar: { visible: false, drawBehind: true, backgroundColor: 'transparent' }, layout: { orientation: ['portrait'], backgroundColor: '#f5fcff' }, _animations: { showModal: { waitForRender: true } } }; } constructor(props) { super(props); // this.simulateLongRunningTask(); this.onClickShowModal = this.onClickShowModal.bind(this); this.onClickDismissModal = this.onClickDismissModal.bind(this); this.onClickDismissPreviousModal = this.onClickDismissPreviousModal.bind(this); this.onClickDismissUnknownModal = this.onClickDismissUnknownModal.bind(this); this.onClickDismissAllPreviousModals = this.onClickDismissAllPreviousModals.bind(this); this.onClickDismissFirstInStack = this.onClickDismissFirstInStack.bind(this); this.onClickDismissAllModals = this.onClickDismissAllModals.bind(this); this.onClickPushScreen = this.onClickPushScreen.bind(this); this.onShowModalWithDeepStack = this.onShowModalWithDeepStack.bind(this); this.onClickModalLifecycle = this.onClickModalLifecycle.bind(this); } simulateLongRunningTask = () => { // tslint:disable-next-line for (let i = 0; i < Math.pow(2, 25); i++); } render() { return ( {`Modal Screen`} {`Modal Stack Position: ${this.getModalPosition()}`}