react-native-animated-dialog

1.0.3 • Public • Published

react-native-animated-dialog

A dialog component for your react-native application.

To Download, run: yarn add react-native-animated-dialog, or npm install -s react-native-animated-dialog.

Sample Usage:

import Dialog from "react-native-animated-dialog";

openDialog = () {
  this.setState({ open: true});
}

closeDialog= () {
  this.setState({ open: false});
}


render () {
  let myLayout = (
    <View>
      // this is what will be displayed inside the dialog
    </View>
)
  return (
      <Dialog
       open={this.state.open}
       layout={myLayout}
       margin={60}                  //default is 40
       closeOnTapOutside={false}   //Default is true
       />
  )
}

By default, the dialog comes up from the bottom. You can add the prop modern={true} to change the animation.

Regular animation

modern

Package Sidebar

Install

npm i react-native-animated-dialog

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

4.12 MB

Total Files

6

Last publish

Collaborators

  • izzi