crazycodeboy / react-native-easy-toast

A react native module to show toast like android, it works on iOS and Android.
http://www.devio.org/
MIT License
1.11k stars 263 forks source link

Add on the README.md the API property useNativeAnimation #101

Open proplayapp opened 3 years ago

proplayapp commented 3 years ago

I found a compatibility issue with the Animated library and had to implicitly set the useNativeAnimation to true. This is not mentioned on the main page, but it's already implemented in the code.

Toast.propTypes = { style: ViewPropTypes.style, position: PropTypes.oneOf([ 'top', 'center', 'bottom', ]), textStyle: Text.propTypes.style, positionValue:PropTypes.number, fadeInDuration:PropTypes.number, fadeOutDuration:PropTypes.number, opacity:PropTypes.number, useNativeAnimation:PropTypes.bool }