在0.60以上的版本報這個錯誤,在xcode裏面和RN的Libraies裏面都找不到這個庫了,只能刪除,重新安裝了
yarn add @react-native-community/geolocation
或者 npm install @react-native-community/geolocation --save
link
react-native link @react-native-community/geolocation
在0.60以上的版本報這個錯誤,在xcode裏面和RN的Libraies裏面都找不到這個庫了,只能刪除,重新安裝了
yarn add @react-native-community/geolocation
或者 npm install @react-native-community/geolocation --save
link
react-native link @react-native-community/geolocation
很明顯,權限不足,如果要使用,通過如下命令進行授權即可: sudo chmod -R 777 要操作的目錄地址