【发布时间】:2018-11-04 11:01:04
【问题描述】:
我有一个使用 expo init 生成的 React-Native 项目。这不会像 create-react-native-app 那样给你一个 ios/android 文件夹。
我安装了这个包:https://github.com/zhangtaii/react-native-google-place-picker
在尝试使用 react-native link 时,我收到以下错误:
Checking Podfile in iOS project (/Users/<path>/ios/Podfile)
Adding Podfile to iOS project
node_modules/react-native-google-place-picker/bin/cocoapods.sh: line 38: cd: ios: No such file or directory
node_modules/react-native-google-place-picker/bin/cocoapods.sh: line 40: /Users/<path>/ios/Podfile: No such file or directory
Installing Pods
[!] `/Users/<name>/<folder>/ios` is not a valid directory.
/Users/<path>/node_modules/react-native/local-cli/core/makeCommand.js:27
throw new Error(`Error occurred during executing "${command}" command`);
^
Error: Error occurred during executing "node_modules/react-native-google-place-picker/bin/cocoapods.sh" command
在新的展会设置下,您还需要react-native link 还是现在都是自动的?
【问题讨论】:
标签: reactjs react-native expo