mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Fixes https://github.com/facebook/react-native/issues/50207 Added slash alpha support like `rgb(255 122 127 / 0.2);`, currently seems we don't support it. ## Changelog: [GENERAL] [ADDED] - Added slash of alpha support using rgb() Pull Request resolved: https://github.com/facebook/react-native/pull/50281 Test Plan: `rgb(255 122 127 / 0.2)` can shows correctly. Reviewed By: cipolleschi Differential Revision: D72009174 Pulled By: NickGerleman fbshipit-source-id: f53e550cfdc8f481785a1fb134cd0fab810f8f38
@react-native/normalize-colors
Installation
yarn add --dev @react-native/normalize-colors
Note: We're using yarn to install deps. Feel free to change commands to use npm 3+ and npx if you like
Testing
To run the tests in this package, run the following commands from the React Native root folder:
yarnto install the dependencies. You just need to run this onceyarn jest packages/normalize-color.