我使用了airbnb/react-native-maps来设计基于追踪的应用程序。我设计了一个自定义搜索框。但问题是,搜索框重叠了我的定位按钮。有没有办法自定义我的定位按钮并更改其对齐位置? 我附加了一张照片以获取更多详细信息。
这里是我使用的示例代码
<MapView
provider={PROVIDER_GOOGLE}
style={styles.map}
region={{
latitude: this.props.initialPosition.latitude,
longitude: this.props.initialPosition.longitude,
latitudeDelta: Latitude_Delta,
longitudeDelta: Longitude_Delta
}}
zoomEnabled={true}
minZoomLevel={5}
maxZoomLevel={20}
showsMyLocationButton={true}
showsUserLocation={true}
... ... ...
>
{... ... ... ...}
</MapView>