Skip to content

Repository files navigation

rn-global-modal

modal like native

Installation

To install, you can use npm or yarn:

$ npm install rn-global-modal
$ yarn add rn-global-modal

Examples

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 

Preview

Preview

About

pop

Resources

Stars

14 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages