-
Notifications
You must be signed in to change notification settings - Fork 25k
Add cardStyle prop to NavigationCardStack. #8471
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
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.
|
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks! |
| key={'card_' + props.scene.key} | ||
| panHandlers={panHandlers} | ||
| renderScene={this.props.renderScene} | ||
| style={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 cardStyle Property not found in object type
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
|
@facebook-github-bot shipit |
|
Thanks for importing. If you are an FB employee go to Phabricator to review. |
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
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 facebook/react-native#8471
Differential Revision: D3508849
Pulled By: javache
fbshipit-source-id: 65703cccf3d01def9f2060256f0ff564bbdc47d3
This allows the
NavigationCardstyle to be extended, the defaultbackgroundColorstyle of theNavigationCardis 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
to see that the
NavigationCardbackground has changed to purple.