什么是 React Native Web?

What is React Native Web?

根据 docs

React Native is there to Create native apps for Android and iOS using React.

但我对 React Native Web 感到困惑。 根据 github home

"React Native for Web" makes it possible to run React Native components and APIs on the web using React DOM.

我不明白!

这是 React Native 官方支持的库,用于将 React Native 移动应用程序编译为 Web 应用程序,从相同的代码库在 Web 上 运行,就像我们在 Flutter 中所做的那样?

再见,您知道要调试 React Native 项目,您必须在模拟器上 运行 它(Expo,Android 模拟器...)。不再需要 react-native-web!您可以直接在浏览器中运行您的 React Native 项目!