moschan / react-native-flip-card

The card component which has a motion of flip for React Native(iOS/Android)
MIT License
387 stars 112 forks source link

Remove double `style` key on TouchableOpacity. Fixes SyntaxError: Attempted to redefine property 'style'. #73

Closed LuisRizo closed 5 years ago

LuisRizo commented 5 years ago

This caused an Android-only crash by just importing the dependency (immediate runtime error) that for some reason doesn't include a stack-trace: SyntaxError: Attempted to redefine property 'style'. This crash does not seem to occur on iOS devices but this dependency is a dependency of a dependency of my project so it was really annoying to track down. The least I could do is make this PR hoping it helps hours of debugging to others!

LuisRizo commented 5 years ago

Created this PR without checking for an already existing one. Closing this in favor of https://github.com/moschan/react-native-flip-card/pull/72