Skip to content

iOS release crash with use "View.propTypes.style" for component style propTypes. #21223

@XinQiXiao

Description

@XinQiXiao

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,
...
}
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Platform: iOSiOS applications.Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions