【问题标题】:Difference between Native Module and React Native ModuleNative Module 和 React Native Module 的区别
【发布时间】:2018-05-22 22:26:45
【问题描述】:

来自官方注册护士docs

Sometimes an app needs access to a platform API that React Native 
doesn't have a corresponding module for yet. 

阅读本节后,我了解了如何创建原生模块,但我想知道两者之间有什么区别?

上下文:

我正在通过this 找出 react-native init 和 CRNA 之间的区别,正如人们所说,你不能将原生模块与 CRNA 链接。

That led me to question about the difference b/w native module 
and react-native module and why native modules are not compatible with CRNA?

【问题讨论】:

    标签: react-native create-react-app expo


    【解决方案1】:

    Create-react-native-app 在 EXPO SDK 中创建一个应用,您没有自己的项目文件,因此无法耦合其他原生模块,除非您从 EXPO SDK 中弹出。

    如果您不知道 expo 是如何运作的,请查看此链接What is the difference between Expo and React Native?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-05-05
      • 1970-01-01
      • 1970-01-01
      • 2018-06-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多