modal like native
To install, you can use npm or yarn:
$ npm install rn-global-modal
$ yarn add rn-global-modal
Here is a simple example of rn-global-modal being used in an app:
importPopfrom'rn-global-modal'render(){return(<Viewstyle={styles.container}><Textstyle={styles.welcome}onPress={this._showPop.bind(this)}>
Show Pop
</Text></View>);}_showPop(){Pop.show(<Viewstyle={{height: 300,width: '80%',backgroundColor:'red'}}/>,{animationType: 'slide-up',maskClosable: true,onMaskClose: ()=>{}})}// animationType fade slide-down slide-up 