0
我有一個反應本機應用程序(v0.42.0
),我嘗試使用Geolocation但是當我navigator.geolocation
如下:本機模塊不能navigator.geolocation爲空的陣營本地
本機模塊不能爲空。
是否有其他人遇到這個問題或知道如何診斷原因?
我有一個反應本機應用程序(v0.42.0
),我嘗試使用Geolocation但是當我navigator.geolocation
如下:本機模塊不能navigator.geolocation爲空的陣營本地
本機模塊不能爲空。
是否有其他人遇到這個問題或知道如何診斷原因?
事實證明,使用的CocoaPods時作出反應原住民有必要包括在Podfile
RCTGeolocation
:
pod 'React', :path => '../some/path/node_modules/react-native', :subspecs => [
'Core',
'RCTAnimation',
'RCTImage',
'RCTText',
'RCTWebSocket', # needed for debugging
'RCTLinkingIOS',
'ART',
'RCTPushNotification',
'RCTActionSheet',
'RCTGeolocation'
]
知道錯誤:由於重寫原型,你需要做到這一步,問候)。 https://facebook.github.io/react-native/docs/pushnotificationios.html – 2017-09-25 20:33:37