mirror of
https://github.com/status-im/react-native.git
synced 2025-01-13 19:15:05 +00:00
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
This commit is contained in:
parent
1ed114e549
commit
03fd91063b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user