Fix propType check for NavigationCard.

Summary:
the prop type check for NavigationCard -> SceneView -> sceneRendererProps is wrong.
Fix it.

Reviewed By: ericvicenti

Differential Revision: D3265049

fb-gh-sync-id: 16e89c932f0f962db4b6a647d62d255ba98f6156
fbshipit-source-id: 16e89c932f0f962db4b6a647d62d255ba98f6156
This commit is contained in:
Hedger Wang 2016-05-05 11:38:46 -07:00 committed by Facebook Github Bot 6
parent b824722501
commit b1cd1cba32

View File

@ -70,7 +70,8 @@ class SceneView extends React.Component<any, SceneViewProps, any> {
static propTypes = {
sceneRenderer: PropTypes.func.isRequired,
sceneRendererProps: NavigationPropTypes.SceneRenderer,
sceneRendererProps:
PropTypes.shape(NavigationPropTypes.SceneRenderer).isRequired,
};
shouldComponentUpdate(nextProps: SceneViewProps, nextState: any): boolean {