react-native-baidu-map
react-native-baidu-map copied to clipboard
android机型
版本环境 react: 17.0.2 => 17.0.2 react-native: 0.66.4 => 0.66.4 react-native-baidu-map => 1.0.37
错误代码 <MapView showsUserLocation={true} locationData={location} width={width} height={400} zoom={18} trafficEnabled={true} zoomControlsVisible={true} mapType={MapTypes.NORMAL} center={center} onMapPoiClick={(e) => { this.getCurrentPosition({ ...e }); }} onMarkerClick={(e) => { console.log('click-22', e); this.getCurrentPosition({ ...e }); }} > <Cluster> <Marker location={{ longitude: 113, latitude: 22 }} /> </Cluster> </MapView>
在华为p50下 只要添加 <Marker location={{ longitude: 113, latitude: 22 }} /> 就闪退
AndroidManifest.xml. application 加上: android:allowNativeHeapPointerTagging="false"