mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Import react-native-maps through expo
This commit is contained in:
@@ -20,6 +20,9 @@ import {
|
||||
CameraObject,
|
||||
Constants,
|
||||
DocumentPicker,
|
||||
EdgeInsets,
|
||||
EdgePadding,
|
||||
EventUserLocation,
|
||||
Facebook,
|
||||
FacebookAds,
|
||||
FaceDetector,
|
||||
@@ -29,29 +32,24 @@ import {
|
||||
ImagePicker,
|
||||
IntentLauncherAndroid,
|
||||
KeepAwake,
|
||||
KmlMapEvent,
|
||||
LinearGradient,
|
||||
Linking,
|
||||
Location,
|
||||
MailComposer,
|
||||
MapEvent,
|
||||
MapStyleElement,
|
||||
MapView,
|
||||
MediaLibrary,
|
||||
Permissions,
|
||||
PublisherBanner,
|
||||
Region,
|
||||
registerRootComponent,
|
||||
ScreenOrientation,
|
||||
Svg,
|
||||
Updates
|
||||
} from 'expo';
|
||||
|
||||
import MapView, {
|
||||
EdgeInsets,
|
||||
EdgePadding,
|
||||
EventUserLocation,
|
||||
KmlMapEvent,
|
||||
MapEvent,
|
||||
MapStyleElement,
|
||||
Region
|
||||
} from 'react-native-maps';
|
||||
|
||||
const reverseGeocode: Promise<Location.GeocodeData[]> = Location.reverseGeocodeAsync({
|
||||
latitude: 0,
|
||||
longitude: 0
|
||||
|
||||
Vendored
+2
-1
@@ -16,7 +16,8 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
export { default } from 'react-native-maps';
|
||||
export * from 'react-native-maps';
|
||||
export { default as MapView } from 'react-native-maps';
|
||||
|
||||
import { EventSubscription } from 'fbemitter';
|
||||
import { Component, ComponentClass, Ref, ComponentType } from 'react';
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"MapView.d.ts",
|
||||
"expo-tests.tsx"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user