MCPcopy Create free account
hub / github.com/react-native-maps/react-native-maps / render

Method render

example/src/examples/OnPoiClick.tsx:39–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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
63const styles = StyleSheet.create({

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected