xref: /expo/packages/expo-maps/src/KML.ts (revision ee0de234)
1import React from 'react';
2
3/**
4 * KML specific props.
5 */
6export type KMLProps = {
7  /**
8   * The value of require('path/to/file.kml') for the .kml asset
9   */
10  filePath: string;
11};
12
13/**
14 * Internal JSON object for representing marker KMLs in Expo Maps library.
15 *
16 * See {@link KMLProps} for more detail.
17 */
18export type KMLObject = {
19  type: 'kml';
20} & KMLProps;
21
22/**
23 * KML component of Expo Maps library.
24 *
25 * Displays data provided in .kml file.
26 * This component should be ExpoMap component child to work properly.
27 *
28 * See {@link KMLProps} for more details.
29 */
30export class KML extends React.Component<KMLProps> {
31  render() {
32    return null;
33  }
34}
35