lovebing / react-native-baidu-map

Baidu Map SDK modules and views for React Native(Android & iOS), support react native 0.61+. 百度地图 React Native 模块,支持 react native 0.61+,已更新到最新的百度地图SDK版本。
MIT License
816 stars 319 forks source link

android机型 #400

Open zhengyanGit opened 1 year ago

zhengyanGit commented 1 year ago

版本环境 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 }); }}

在华为p50下 只要添加 <Marker location={{ longitude: 113, latitude: 22 }} /> 就闪退

duxj099 commented 1 month ago

AndroidManifest.xml. application 加上: android:allowNativeHeapPointerTagging="false"