react-native-map-link 3.0.2 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -26,6 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Popup = void 0;
|
|
29
30
|
const react_1 = __importStar(require("react"));
|
|
30
31
|
const react_native_1 = require("react-native");
|
|
31
32
|
const utils_1 = require("../../utils");
|
|
@@ -82,6 +83,7 @@ const Popup = ({ isVisible, showHeader = true, customHeader, customFooter, onApp
|
|
|
82
83
|
</react_native_1.View>
|
|
83
84
|
</react_native_1.Modal>);
|
|
84
85
|
};
|
|
86
|
+
exports.Popup = Popup;
|
|
85
87
|
const styles = react_native_1.StyleSheet.create({
|
|
86
88
|
container: {
|
|
87
89
|
backgroundColor: 'white',
|
|
@@ -107,4 +109,3 @@ const styles = react_native_1.StyleSheet.create({
|
|
|
107
109
|
elevation: 5,
|
|
108
110
|
},
|
|
109
111
|
});
|
|
110
|
-
exports.default = Popup;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { GetAppsProps, GetAppsResponse, ShowLocationProps } from './type';
|
|
2
2
|
export type { DirectionMode, GetAppsProps, GetAppsResponse, MapId, MapLinkOptions, PopupProps, PopupStyleProp, SharedOptions, ShowLocationProps, } from './type';
|
|
3
|
+
export { Popup } from './components/popup/Popup';
|
|
3
4
|
export declare const showLocation: ({ latitude, longitude, sourceLatitude, sourceLongitude, appleIgnoreLatLon, alwaysIncludeGoogle, googleForceLatLon, googlePlaceId, title: customTitle, app: customApp, dialogTitle: customDialogTitle, dialogMessage: customDialogMessage, cancelText: customCancelText, appsWhiteList: customAppsWhiteList, appTitles, naverCallerName, directionsMode, }: ShowLocationProps) => Promise<string | null | undefined>;
|
|
4
5
|
export declare function getApps({ alwaysIncludeGoogle, appsWhiteList, appTitles, naverCallerName, ...rest }: GetAppsProps): Promise<GetAppsResponse[]>;
|
package/lib/index.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getApps = exports.showLocation = void 0;
|
|
3
|
+
exports.getApps = exports.showLocation = exports.Popup = void 0;
|
|
4
4
|
const react_native_1 = require("react-native");
|
|
5
5
|
const constants_1 = require("./constants");
|
|
6
6
|
const utils_1 = require("./utils");
|
|
7
|
+
var Popup_1 = require("./components/popup/Popup");
|
|
8
|
+
Object.defineProperty(exports, "Popup", { enumerable: true, get: function () { return Popup_1.Popup; } });
|
|
7
9
|
const showLocation = async ({ latitude, longitude, sourceLatitude, sourceLongitude, appleIgnoreLatLon, alwaysIncludeGoogle, googleForceLatLon, googlePlaceId, title: customTitle, app: customApp, dialogTitle: customDialogTitle, dialogMessage: customDialogMessage, cancelText: customCancelText, appsWhiteList: customAppsWhiteList, appTitles, naverCallerName, directionsMode, }) => {
|
|
8
10
|
const prefixes = (0, constants_1.generatePrefixes)({
|
|
9
11
|
alwaysIncludeGoogle,
|