iOS release crash with use "View.propTypes.style" for component style propTypes. #21223
Labels
Platform: iOS
iOS applications.
Ran Commands
One of our bots successfully processed a command.
Resolution: Locked
This issue was locked by the bot.
Environment
OS: macOS High Sierra 10.13.6
Node: 7.6.0
Yarn: 1.7.0
npm: 4.1.2
Watchman: 3.3.0
Xcode: Xcode 9.4.1 Build version 9F2000
Android Studio: 3.0 AI-171.4443003
Packages: (wanted => installed)
react: ^16.1.1 => 16.5.2
react-native: ^0.50.4 => 0.50.4
Description
In a custom component, propsType is used for specifying the props type of the component. No error was reported in the debug environment, but after release was packaged, it broke.
Code below
...
someComponent.propTypes = {
containerStyle: View.propTypes.style,
...
}
someComponent.defaultProps = {
containerStyle: null,
...
}
...
The text was updated successfully, but these errors were encountered: