Skip to content

Commit 6432839

Browse files
lgan1989Martin Konicek
authored and
Martin Konicek
committed
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 #9808 Differential Revision: D4277323 Pulled By: ericvicenti fbshipit-source-id: c30b4a21675cad98c19f5c6522e286d776bfa20d
1 parent 61a63c9 commit 6432839

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Libraries/CustomComponents/NavigationExperimental/NavigationCardStack.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class NavigationCardStack extends React.Component<DefaultProps, Props, void> {
131131
/**
132132
* Custom style applied to the card.
133133
*/
134-
cardStyle: View.propTypes.style,
134+
cardStyle: PropTypes.any,
135135

136136
/**
137137
* Direction of the cards movement. Value could be `horizontal` or

0 commit comments

Comments
 (0)