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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.31latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.31
1.0.20
1.0.10
1.0.00

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