react-native-baidumap-sdk icon indicating copy to clipboard operation
react-native-baidumap-sdk copied to clipboard

requireNativeComponent: "BaiduMapMarker" was not found in the UIManager.

Open TangZhenPeng24 opened this issue 3 years ago • 3 comments

TangZhenPeng24 avatar May 27 '21 03:05 TangZhenPeng24

+1

gdmec07140512 avatar Nov 17 '21 02:11 gdmec07140512

lib/js/component.js UIManager[this.nativeComponentName].Commands[command], ===> UIManager.getViewManagerConfig(this.nativeComponentName).Commands[command],

gdmec07140512 avatar Nov 17 '21 06:11 gdmec07140512

下面是方法: 找到:

node_modules/react-native-baidumap-sdk/lib/js/component.js

UIManager[this.nativeComponentName].Commands[command],

修改成:

UIManager.getViewManagerConfig(this.nativeComponentName).Commands[command],

StevenGardnerGMJ avatar May 27 '22 09:05 StevenGardnerGMJ