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

Method render

example/src/examples/LegalLabel.tsx:46–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44 };
45
46 render() {
47 const latlng = {
48 latitude: 37.78825,
49 longitude: -122.4324,
50 };
51
52 const ASPECT_RATIO = screen.width / screen.height;
53 const LATITUDE_DELTA = 0.0922;
54 const LONGITUDE_DELTA = LATITUDE_DELTA * ASPECT_RATIO;
55
56 return (
57 <View style={{...StyleSheet.absoluteFillObject}}>
58 <MapView
59 provider={this.props.provider}
60 style={styles.map}
61 legalLabelInsets={{
62 top: 0,
63 left: 0,
64 bottom: this.state.legalLabelPositionY,
65 right: 10,
66 }}
67 appleLogoInsets={{
68 bottom: 50,
69 left: 10,
70 }}
71 initialRegion={{
72 ...latlng,
73 latitudeDelta: LATITUDE_DELTA,
74 longitudeDelta: LONGITUDE_DELTA,
75 }}>
76 <Marker coordinate={latlng} />
77 </MapView>
78
79 <View style={styles.username}>
80 <TouchableOpacity onPress={this.onPressAnimate}>
81 <Text style={styles.usernameText}>Animate</Text>
82 </TouchableOpacity>
83 </View>
84
85 <View style={styles.bio}>
86 <Text style={styles.bioText}>
87 Bio description lorem ipsum Ullamco exercitation aliqua ullamco
88 nostrud dolor et aliquip fugiat do aute fugiat velit in aliqua sit.
89 </Text>
90 </View>
91
92 <View style={styles.photo}>
93 <View style={styles.photoInner}>
94 <Text style={styles.photoText}>Profile Photo</Text>
95 </View>
96 </View>
97 </View>
98 );
99 }
100}
101
102const padding = 10;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected