react-native-component/react-native-smart-amap-location

Error on iOS

jaggerwang opened this issue · 0 comments

Problem

Building passed, but running with error "Required dispatch_sync to load constants for RCTAMapLocation. This may lead to deadlocks".

Env

react-native: 0.39.2
react-native-smart-amap-location: 1.1.1
platform: iOS 10.2 on iPhone 5s, Android unknown.

Code

...
    {(
      ...
      AMapLocation.init(null);
      NativeAppEventEmitter.addListener('amap.location.onLocationResult', result => {
        console.log(result);
      })
      ...
    })
    .catch(error => logger.error(error));
...

Screenshots

image

image