I want to change value dynamically at some event
Event:
BackgroundGeolocation.on(\'location\', (location) => { currentDistance = distance(
Use:
this._MyComponent=component}/>
instead of:
Then you can change the text this way:
onPress= {()=> { this._MyComponent.setNativeProps({text:'my new text'}); }