Native模块和React Native模块之间的区别

时间:2018-05-22 22:26:46

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

来自官方RN 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?

1 个答案:

答案 0 :(得分:0)

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

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