Skip to content

Commit dac7f94

Browse files
committed
Updates to accomdate latest of @teovilla/react-native-web-maps
1 parent 3832bb9 commit dac7f94

File tree

12 files changed

+13
-41
lines changed

12 files changed

+13
-41
lines changed

packages/maps/app.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="@teovilla/react-native-web-maps/dist/typescript/override-types" />

packages/maps/src/components/MapCallout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from "react";
2-
import { Callout as MapCalloutComponent } from "./ReactNativeMaps";
2+
import { Callout as MapCalloutComponent } from "./react-native-maps";
33
import type { MapCalloutProps as MapCalloutComponentProps } from "react-native-maps";
44

55
export interface MapCalloutProps

packages/maps/src/components/MapMarker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from "react";
22
import { Image, ImageSourcePropType } from "react-native";
3-
import { Marker as MapMarkerComponent } from "./ReactNativeMaps";
3+
import { Marker as MapMarkerComponent } from "./react-native-maps";
44
import type { MapMarkerProps as MapMarkerComponentProps } from "react-native-maps";
55

66
export interface MapMarkerProps

packages/maps/src/components/MapView.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from "react";
22
import { StyleSheet, Platform } from "react-native";
3-
import MapViewComponent from "./ReactNativeMaps";
3+
import MapViewComponent from "./react-native-maps";
44
import type {
55
Camera,
66
LatLng,
@@ -100,7 +100,6 @@ class MapView<T> extends React.Component<
100100

101101
return (
102102
<MapViewComponent
103-
//@ts-ignore Ref type is lost due to how web/native import is done
104103
ref={this.mapRef}
105104
provider={provider}
106105
googleMapsApiKey={apiKey}

packages/maps/src/components/ReactNativeMaps.tsx

Lines changed: 0 additions & 37 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { Callout } from "react-native-maps";
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { Callout } from "@teovilla/react-native-web-maps/dist/typescript/index.web";
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as default } from "react-native-maps";
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as default } from "@teovilla/react-native-web-maps/dist/typescript/index.web";
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { Marker } from "react-native-maps";

0 commit comments

Comments
 (0)