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

Method constructor

example/src/examples/MapKml.tsx:16–29  ·  view source on GitHub ↗
(props: any)

Source from the content-addressed store, hash-verified

14export default class MapKml extends React.Component<any, any> {
15 map: any;
16 constructor(props: any) {
17 super(props);
18
19 this.state = {
20 region: {
21 latitude: LATITUDE,
22 longitude: LONGITUDE,
23 latitudeDelta: LATITUDE_DELTA,
24 longitudeDelta: LONGITUDE_DELTA,
25 },
26 };
27
28 this.onKmlReady = this.onKmlReady.bind(this);
29 }
30
31 onKmlReady() {
32 this.map.fitToElements({animated: true});

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected