Skip to content

android机型 #400

@zhengyanGit

Description

@zhengyanGit

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

<Marker location={{ longitude: 113, latitude: 22 }} />

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions