react-native-web README

The project's README from github.com/necolas/react-native-web. As one markdown file: README.md.

Development monorepo

This is the development monorepo for "React Native for Web" and related projects.

Structure

Tasks

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.

react-native-web (necolas/react-native-web)

Searching Database…

这是做什么的?React Native for Web 是一组跨平台的 React UI 包;这个仓库是开发用的 monorepo,react-native-web 包和相关项目都在这里构建。
这是我安装到自己应用里的库,还是一个独立完整的应用?它是一个库,不是应用:react-native-web 以 React UI 包的形式发布,作为依赖来使用;而这个仓库是开发用的 monorepo,把这些包连同它们的构建、lint 和测试工具一起放在这里。
我在本地怎么把它跑起来?克隆仓库后使用 npm 脚本:npm run build 编译所有包(npm run build -w 只针对某一个包),npm run dev 运行开发构建,npm run test 执行测试套件。
构建和开发它需要安装哪些东西?标准的 Node.js 和 npm 环境即可——这些包以 npm workspaces 的方式管理——另外还需要 Flow 做类型检查、ESLint 做 lint、Prettier 做代码格式化。
这个仓库能教我怎么在自己的应用里使用这些组件吗?不能——它介绍的是开发而不是使用:README 讲的是仓库结构、构建、测试和贡献流程,贡献指南描述的是开发流程;这里没有应用层面的安装或 API 使用指南。
这些组件实际运行在哪里——只在浏览器里,还是也支持原生移动端?它们通过 react-dom 在浏览器中渲染——主包是 react-native-web——而且这个项目把自己定位为跨平台 React UI,所以这些组件在 Web 和 React Native 之间是共享的。
这个 monorepo 里到底有什么?四个文件夹:.github 存放 GitHub Actions 工作流和 issue 模板,configs 存放共享的工具配置,packages 里是 react-native-web 和其他各个包,scripts 里是处理杂项任务的 Node.js 辅助脚本。
这个项目怎么发现 React 相关的问题?持续集成会在测试、标签和性能检查之外运行一个 react-integration 工作流,因此改动会在真实的 React 集成场景下验证,而不只是跑单元测试套件。
Creator
necolas
Size
94 MB
Stars
22.2K
Age
11y
Commits · 90 Days