# Mapmyindia Maps SDK for React Native beta

**Welcome to the mapmyindia-map-react-native-beta wiki!**


## <MapmyIndiaGL.UserLocation />
### 

### props
| Prop | Type | Default | Required | Description |
| ---- | :--: | :-----: | :------: | :----------: |
| animated | `bool` | `true` | `false` | Whether location icon is animated between updates |
| renderMode | `enum` | `'normal'` | `false` | Rendermode of user location icon.<br/>One of `"normal"`, `"custom"`.<br/>"custom" must be of type mapbox-gl-native components |
| visible | `bool` | `true` | `false` | Whether location icon is visible |
| onPress | `func` | `none` | `false` | Callback that is triggered on location icon press |
| onUpdate | `func` | `none` | `false` | Callback that is triggered on location update |
| minDisplacement | `number` | `0` | `false` | FIX ME NO DESCRIPTION |
| children | `any` | `none` | `false` | Custom location icon of type mapbox-gl-native components |

### methods
#### setLocationManager({running})

Whether to start or stop the locationManager<br/>Notice, that locationManager will start automatically when<br/>either `onUpdate` or `visible` are set

##### arguments
| Name | Type | Required | Description  |
| ---- | :--: | :------: | :----------: |
| `{running}` | `n/a` | `Yes` | undefined |


#### needsLocationManagerRunning()

If locationManager should be running

##### arguments
| Name | Type | Required | Description  |
| ---- | :--: | :------: | :----------: |







For any queries and support, please contact:

![Email](https://www.google.com/a/cpanel/mapmyindia.co.in/images/logo.gif?service=google_gsuite)
Email us at [apisupport@mapmyindia.com](mailto:apisupport@mapmyindia.com)

![](https://www.mapmyindia.com/api/img/icons/stack-overflow.png)
[Stack Overflow](https://stackoverflow.com/questions/tagged/mapmyindia-api)
Ask a question under the mapmyindia-api

![](https://www.mapmyindia.com/api/img/icons/support.png)
[Support](https://www.mapmyindia.com/api/index.php#f_cont)
Need support? contact us!

![](https://www.mapmyindia.com/api/img/icons/blog.png)
[Blog](http://www.mapmyindia.com/blog/)
Read about the latest updates & customer stories


> © Copyright 2019. CE Info Systems Pvt. Ltd. All Rights Reserved. | [Terms & Conditions](http://www.mapmyindia.com/api/terms-&-conditions)
> mapbox-gl-native copyright (c) 2014-2018 Mapbox.
>  Written with [StackEdit](https://stackedit.io/) by MapmyIndia.