mirror of
https://github.com/status-im/react-native.git
synced 2025-01-28 02:04:55 +00:00
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:
parent
b824722501
commit
b1cd1cba32
@ -70,7 +70,8 @@ class SceneView extends React.Component<any, SceneViewProps, any> {
|
|||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
sceneRenderer: PropTypes.func.isRequired,
|
sceneRenderer: PropTypes.func.isRequired,
|
||||||
sceneRendererProps: NavigationPropTypes.SceneRenderer,
|
sceneRendererProps:
|
||||||
|
PropTypes.shape(NavigationPropTypes.SceneRenderer).isRequired,
|
||||||
};
|
};
|
||||||
|
|
||||||
shouldComponentUpdate(nextProps: SceneViewProps, nextState: any): boolean {
|
shouldComponentUpdate(nextProps: SceneViewProps, nextState: any): boolean {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user