-
Notifications
You must be signed in to change notification settings - Fork 25k
Navigation card style prop #8115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
By analyzing the blame information on this pull request, we identified @hedgerwang and @gabelevi to be potential reviewers. |
| onNavigateBack: PropTypes.func, | ||
| renderOverlay: PropTypes.func, | ||
| renderScene: PropTypes.func.isRequired, | ||
| cardStyle: React.propTypes.style, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
property propTypes Property not found in module react
| onNavigateBack: PropTypes.func, | ||
| renderOverlay: PropTypes.func, | ||
| renderScene: PropTypes.func.isRequired, | ||
| cardStyle: React.View.propTypes.style, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
property View Property not found in module react
This allows the NavigationCard style to be extended, the default backgroundColor style is not applicable to all apps. Fixes issue facebook#8116. PR facebook#8115 was already made for this but didn't pass the CI checks.
|
Closing in favour of #8471, which passes CI checks |
Summary: This allows the `NavigationCard` style to be extended, the default `backgroundColor` style of the `NavigationCard` is not applicable to all apps. Fixes issue #8116. PR #8115 was already made for this but didn't pass CI checks. **Test plan** When rendering a NavigationCardStack, add ``` const { CardStack } = NavigationExperimental; ... <CardStack cardStyle={{ backgroundColor: 'purple' }} /> ``` to see that the `NavigationCard` background has changed to purple. Closes #8471 Differential Revision: D3508849 Pulled By: javache fbshipit-source-id: 65703cccf3d01def9f2060256f0ff564bbdc47d3
Summary: This allows the `NavigationCard` style to be extended, the default `backgroundColor` style of the `NavigationCard` is not applicable to all apps. Fixes issue facebook#8116. PR facebook#8115 was already made for this but didn't pass CI checks. **Test plan** When rendering a NavigationCardStack, add ``` const { CardStack } = NavigationExperimental; ... <CardStack cardStyle={{ backgroundColor: 'purple' }} /> ``` to see that the `NavigationCard` background has changed to purple. Closes facebook#8471 Differential Revision: D3508849 Pulled By: javache fbshipit-source-id: 65703cccf3d01def9f2060256f0ff564bbdc47d3
Summary: This allows the `NavigationCard` style to be extended, the default `backgroundColor` style of the `NavigationCard` is not applicable to all apps. Fixes issue facebook#8116. PR facebook#8115 was already made for this but didn't pass CI checks. **Test plan** When rendering a NavigationCardStack, add ``` const { CardStack } = NavigationExperimental; ... <CardStack cardStyle={{ backgroundColor: 'purple' }} /> ``` to see that the `NavigationCard` background has changed to purple. Closes facebook#8471 Differential Revision: D3508849 Pulled By: javache fbshipit-source-id: 65703cccf3d01def9f2060256f0ff564bbdc47d3
Allows users of NavigationCardStack to override the cards’ styles. Motivated by the need to change the NavigationCard backgroundColor.