screen props warning removed

This commit is contained in:
Gant
2017-03-05 10:38:12 -06:00
committed by Satyajit Sahoo
parent da8f85895a
commit 37ea268d3f

View File

@@ -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,