This patch reorganizes the style compiler so that the 'preprocess' step is responsible for all the work needed to transform any non-standard CSS from React Native into a form that can be 'compiled' to rules for the CSSStyleSheet. Over time the 'preprocess' step should eventually be unnecessary as React Native aligns its APIs with CSS APIs. And any external style compilers should be able to run the 'preprocess' function over the style input to produce valid CSS as input for the compiler.
Development monorepo
This is the development monorepo for "React Native for Web" and related projects.
Structure
.github- Contains workflows used by GitHub Actions.
- Contains issue templates.
configs- Contains configration files used by the monorepo tooling (compiling, linting, testing, etc.)
packages- react-native-web
- Contains the individual packages managed in the monorepo.
scripts- Contains Node.js scripts for miscellaneous tasks.
Tasks
build- Use
npm run buildto run the build script in every package. - Use
npm run build -w <package-name>to run the build script for a specific package.
- Use
dev- Use
npm run devto run the dev script in every package. - Use
npm run dev -w <package-name>to run the dev script for a specific package.
- Use
test- Use
npm run testto run tests for every package.
- Use
More details can be found in the contributing guide below.
Contributing
Development happens in the open on GitHub and we are grateful for contributions including bugfixes, improvements, and ideas.
Code of conduct
This project expects all participants to adhere to Meta's OSS Code of Conduct. Please read the full text so that you can understand what actions will and will not be tolerated.
Contributing guide
Read the contributing guide to learn about the development process, how to propose bugfixes and improvements, and how to build and test your changes to React Native for Web.
Good first issues
To help you get you familiar with the contribution process, there is a list of good first issues that contain bugs which have a relatively limited scope. This is a great place to get started.