Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detect if Text.propTypes actually exists for web (#11)
I'm using [react-native-web](https://github.com/necolas/react-native-web) in conjunction with this library in order to support more platforms with the same codebase. When building our app for development, everything works properly and this library does exactly what we need it to. However, react-native-web excludes propTypes when you do a production build in order to reduce bundle size and improve performance. This leads to [issues](necolas/react-native-web#423) when libraries depend on propTypes being defined. I propose feature-detecting whether Text.propTypes is actually defined so that people using react-native-web, or any bundlers for native that reduce size agressively, without affecting current users.
- Loading branch information
378a943
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, this should be unnecessary once this bug is fixed - oliviertassinari/babel-plugin-transform-react-remove-prop-types#95