ShowsMyLocationButton 未在 iOS 上显示(react-native-maps)

Osk*_*ård 5 ios react-native react-native-maps

showMyLocationButton 选项在 iOS 上不起作用。最初,该按钮在 Android 上也没有显示,但在实施 github issues 中建议的 hack(强制重新渲染)后,我让它显示出来。

如何在 iOS 上显示该按钮?我应该制作自己的按钮吗?

<MapView
  style={styles.map, { flex: 1, marginBottom: this.state.marginBottom }}
  onMapReady={this._onMapReady}
  initialRegion={initialRegion}
  showsUserLocation={true}
  //onPanDrag={e => console.log(e.nativeEvent)}
  followsUserLocation={true}
  showsMyLocationButton={true}
 >
Run Code Online (Sandbox Code Playgroud)

反应本机地图:0.21.0

反应:16.4.1