console.log('render'+this.state.driverLocation.latitude +' '+this.state.driverLocation.longitude); let marker = null; marker = <MapView.Marker title='This is you' coordinate={this.state.driverLocation } />; return ( <View style={styles.container}> <MapView initialRegion={this.state.focusedLocation} region={!this.state.locationChosen ? this.state.focusedLocation : null} style={styles.map} onPress={this.pickLocationHandler} ref={ref => this.map = ref} > {marker} </MapView>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)