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

Method render

example/src/examples/ThemeMap.tsx:27–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25 }
26
27 render() {
28 return (
29 <View style={styles.container}>
30 <ScrollView contentContainerStyle={styles.scrollview}>
31 <Text>System</Text>
32 <MapView
33 provider={this.props.provider}
34 style={styles.map}
35 scrollEnabled={false}
36 zoomEnabled={false}
37 pitchEnabled={false}
38 rotateEnabled={false}
39 initialRegion={this.state.region}>
40 <Marker
41 title="This is a title"
42 description="This is a description"
43 coordinate={this.state.region}
44 />
45 </MapView>
46
47 <Text>{'\n'}Light</Text>
48 <MapView
49 provider={this.props.provider}
50 style={styles.map}
51 scrollEnabled={false}
52 zoomEnabled={false}
53 pitchEnabled={false}
54 rotateEnabled={false}
55 initialRegion={this.state.region}
56 userInterfaceStyle="light">
57 <Marker
58 title="This is a title"
59 description="This is a description"
60 coordinate={this.state.region}
61 />
62 </MapView>
63 <Text>{'\n'}Dark</Text>
64 <MapView
65 provider={this.props.provider}
66 style={styles.map}
67 scrollEnabled={false}
68 zoomEnabled={false}
69 pitchEnabled={false}
70 rotateEnabled={false}
71 initialRegion={this.state.region}
72 userInterfaceStyle="dark">
73 <Marker
74 title="This is a title"
75 description="This is a description"
76 coordinate={this.state.region}
77 />
78 </MapView>
79 </ScrollView>
80 </View>
81 );
82 }
83}
84

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected