From 64328398b3460a999d12e8b753f52e18ae8cf4ae Mon Sep 17 00:00:00 2001 From: "gl8997@gmail.com" Date: Mon, 5 Dec 2016 09:52:10 -0800 Subject: [PATCH] Update type check for NavigationCardStack Summary: The typecheck inside of NavigationCard is PropTypes.any while in NavigationCardStack it is View.propTypes.style. let's make them consistent to avoid unnecessary warnings. (e.g. trying to pass a animationStyle as cardStyle) Closes https://github.com/facebook/react-native/pull/9808 Differential Revision: D4277323 Pulled By: ericvicenti fbshipit-source-id: c30b4a21675cad98c19f5c6522e286d776bfa20d --- .../NavigationExperimental/NavigationCardStack.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/CustomComponents/NavigationExperimental/NavigationCardStack.js b/Libraries/CustomComponents/NavigationExperimental/NavigationCardStack.js index 6bc607591..28032f94f 100644 --- a/Libraries/CustomComponents/NavigationExperimental/NavigationCardStack.js +++ b/Libraries/CustomComponents/NavigationExperimental/NavigationCardStack.js @@ -131,7 +131,7 @@ class NavigationCardStack extends React.Component { /** * Custom style applied to the card. */ - cardStyle: View.propTypes.style, + cardStyle: PropTypes.any, /** * Direction of the cards movement. Value could be `horizontal` or