Skip to content

izzisolomon/react-native-animated-dialog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A dialog with animation for your react native app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published