我发布了这个反应原生问题:
环境
Environment:
OS: macOS Sierra 10.12.6
Node: 7.10.0
Yarn: 1.3.2
npm: 5.6.0
Watchman: 4.7.0
Xcode: Xcode 8.0 Build version 8A218a
Android Studio: 1.5 AI-141.2456560
Packages: (wanted => installed)
react: 16.0.0-alpha.12 => 16.0.0-alpha.12
react-native: 0.48.0 => 0.48.0
重现步骤
react-native link react-native-fbsdk
or simply
react-native link
预期行为
我认为它会链接react-native-fbsdk
实际行为
rnpm-install ERR! ERRPACKAGEJSON No package found. Are you sure this is a React Native project?
Cannot read property '_text' of undefined
可重复演示
这是一个工具问题,只能在命令行重现,并不重要的应用程序。
答案 0 :(得分:1)
使用react-native install react-native-fbsdk
安装fbsdk然后尝试链接到您的项目react-native link react-native-fbsdk
以获取更多信息,请参阅documentation