React Native: Style UserLocation in react-native-maps
How to style the UserLocation
on React Native Maps
<MapView
region={this.props.coordinate}
showsUserLocation={true} // <- style for this option
>
//My map markers
</MapView>
Style such as
{
position:"absolute",
top:100,
right:100,
}
You can not directly styling mapView component. All you can do is place mapView inside a normal View and you can styling the View as much as you want.
You can place the style at your separated .js file, i guess with "style" suffix in its filename.
Comments
Post a Comment