Skip to content

Commit

Permalink
Update type check for NavigationCardStack
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lgan1989 authored and Martin Konicek committed Dec 12, 2016
1 parent 61a63c9 commit 6432839
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class NavigationCardStack extends React.Component<DefaultProps, Props, void> {
/**
* Custom style applied to the card.
*/
cardStyle: View.propTypes.style,
cardStyle: PropTypes.any,

/**
* Direction of the cards movement. Value could be `horizontal` or
Expand Down

0 comments on commit 6432839

Please sign in to comment.