magicismight / react-native-root-modal

A pure JavaScript solution for react native`s modal component
MIT License
367 stars 56 forks source link

How do I use animation and custom style #2

Open percyteng opened 7 years ago

percyteng commented 7 years ago

It doesn't seem like there is any props for me to choose between different styles. The only thing I can use right now is the simple one. Can you please tell me what I need to do to use other styles?

DanielZara commented 5 years ago

This is little bit late, but for every one else who will look for this answer you have to do this: Animation: import {Animated as AnimatedModal} from "react-native-root-modal"; and straight forward -> <AnimatedModal visible={this.props.visible} style={[styles.content, {opacity: this.animation}]}/>