React Native将使用React进行开发的最佳部分带到原生开发中。
这是一个用于构建用户界面的顶级 JavaScript 库。
function HomeScreen() {
return (
<View>
<Text> Hello World 👋 🌍!</Text>
</View>
);
}


用 JavaScript 编写,以原生代码渲染。 React 原语渲染为原生平台 UI,这意味着你的应用程序使用 与其他应用程序相同的原生平台 API。
React Native 让你能够创建真正的原生应用,并且不会影响用户体验。它提供了一组核心的、与平台无关的原生组件,比如 View、Text 和 Image,这些组件可以直接映射到平台的原生 UI 构建模块。


React Native 将 React 编程范式带到了 Android 和 iOS 等平台。它并不规定如何进行路由,或如何访问众多平台 API。要使用 React Native 构建新应用,我们推荐使用像 Expo 这样的框架。


使用文件系统创建堆栈、模态、抽屉和标签屏幕,最小化样板代码。


生成原生更改或编写自己的原生代码。使用超过 50 个模块来创建您的应用。


使用 Expo Go 快速入门,然后继续使用 expo-dev-client:一个将 Expo 工具添加到需要原生更改的应用中的模块。
React Native is being used in thousands of apps, but it's likely
you've already used it in one of these apps.
Meta released React Native in 2015 and has been maintaining it ever since.
Today, React Native is supported by contributions from individuals and companies around the world including:
Additionally, our community is always shipping exciting new projects and expanding beyond Android and iOS with initiatives like React Native Windows, React Native macOS and React Native Web