mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-03-06 22:39:41 +08:00
screen props warning removed
This commit is contained in:
@@ -15,8 +15,6 @@ type Props = {
|
||||
component: ReactClass<*>;
|
||||
};
|
||||
|
||||
let screenPropsWarningShown = false;
|
||||
|
||||
export default class SceneView extends PureComponent<void, Props, void> {
|
||||
static childContextTypes = {
|
||||
navigation: React.PropTypes.object.isRequired,
|
||||
@@ -30,17 +28,6 @@ export default class SceneView extends PureComponent<void, Props, void> {
|
||||
};
|
||||
}
|
||||
|
||||
componentWillMount() {
|
||||
if (this.props.screenProps !== undefined && !screenPropsWarningShown) {
|
||||
console.warn(
|
||||
'Behaviour of screenProps has changed from initial beta. ' +
|
||||
'Components will now receive it as `this.props.screenProps` instead.\n' +
|
||||
'This warning will be removed in future.'
|
||||
);
|
||||
screenPropsWarningShown = true;
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
const {
|
||||
screenProps,
|
||||
|
||||
Reference in New Issue
Block a user