mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
bd0aedc8c3
Summary: - Adds `background` prop that supports CSS's linear gradient. Later this can be extended to support various other gradients and possibly CSS's background image (less motivation as better solutions exists for image) - Extended `CSSBackgroundDrawable` to draw Linear Gradient shader while preserving the border style support. - Style supports JS object to specify `LinearGradient`, so it can support Animated libraries. ## Changelog: [ANDROID] [ADDED] - linear gradient <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests Pull Request resolved: https://github.com/facebook/react-native/pull/45433 Test Plan: - Check out `processBackground-test.js` for supported syntax testcases. - Checkout examples added in `LinearGradientExample.js` Although the PR is tested well but open to any changes/feedback on the approach taken. iOS PR - https://github.com/facebook/react-native/pull/45433. Separated the PRs to keep it easier to review. Both PRs can be reviewed individually. Reviewed By: joevilches Differential Revision: D60493360 Pulled By: NickGerleman fbshipit-source-id: 762929c4fe16d87cbbd9ebe83ecce96a9e13192c
Where is the template?
The React Native Template has moved from being shipping inside the react-native package to it's own package: @react-native-community/template.
Why has it moved?
The React Native Frameworks RFC0759 provides background information.
When was it moved?
The 0.75 release.