()
| 37 | } |
| 38 | |
| 39 | render() { |
| 40 | return ( |
| 41 | <View style={styles.container}> |
| 42 | <MapView |
| 43 | provider={this.props.provider} |
| 44 | style={styles.map} |
| 45 | initialRegion={this.state.region} |
| 46 | onPoiClick={this.onPoiClick}> |
| 47 | {this.state.poi && ( |
| 48 | <Marker coordinate={this.state.poi.coordinate}> |
| 49 | <Callout> |
| 50 | <View> |
| 51 | <Text>Place Id: {this.state.poi.placeId}</Text> |
| 52 | <Text>Name: {this.state.poi.name}</Text> |
| 53 | </View> |
| 54 | </Callout> |
| 55 | </Marker> |
| 56 | )} |
| 57 | </MapView> |
| 58 | </View> |
| 59 | ); |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | const styles = StyleSheet.create({ |
nothing calls this directly
no outgoing calls
no test coverage detected