@ingissa/navcore-react-native 1.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.
- package/dist/NavCoreProvider.d.ts +33 -0
- package/dist/NavCoreProvider.d.ts.map +1 -0
- package/dist/NavCoreProvider.js +41 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/useNavCore.d.ts +58 -0
- package/dist/useNavCore.d.ts.map +1 -0
- package/dist/useNavCore.js +145 -0
- package/package.json +46 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NavCoreProvider — React Context for shared NavCore engine access.
|
|
3
|
+
*
|
|
4
|
+
* Use when multiple components need access to the same engine instance
|
|
5
|
+
* (e.g. map view, instruction banner, debug panel).
|
|
6
|
+
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
8
|
+
import { NavCore, type NavCoreOptions } from '@ingissa/navcore-core';
|
|
9
|
+
interface NavCoreContextValue {
|
|
10
|
+
engine: NavCore;
|
|
11
|
+
}
|
|
12
|
+
interface NavCoreProviderProps {
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
options?: NavCoreOptions;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Wraps children with a shared NavCore engine instance.
|
|
18
|
+
*
|
|
19
|
+
* ```tsx
|
|
20
|
+
* <NavCoreProvider options={{ licenseKey: '...' }}>
|
|
21
|
+
* <MapScreen />
|
|
22
|
+
* <InstructionBanner />
|
|
23
|
+
* </NavCoreProvider>
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare function NavCoreProvider({ children, options }: NavCoreProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
/**
|
|
28
|
+
* Access the shared NavCore engine from context.
|
|
29
|
+
* Must be used within a <NavCoreProvider>.
|
|
30
|
+
*/
|
|
31
|
+
export declare function useNavCoreContext(): NavCoreContextValue;
|
|
32
|
+
export {};
|
|
33
|
+
//# sourceMappingURL=NavCoreProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavCoreProvider.d.ts","sourceRoot":"","sources":["../src/NavCoreProvider.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAA8C,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACnF,OAAO,EAAE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAErE,UAAU,mBAAmB;IAC3B,MAAM,EAAE,OAAO,CAAC;CACjB;AAID,UAAU,oBAAoB;IAC5B,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,oBAAoB,2CAe1E;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,IAAI,mBAAmB,CAMvD"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* NavCoreProvider — React Context for shared NavCore engine access.
|
|
4
|
+
*
|
|
5
|
+
* Use when multiple components need access to the same engine instance
|
|
6
|
+
* (e.g. map view, instruction banner, debug panel).
|
|
7
|
+
*/
|
|
8
|
+
import { createContext, useContext, useRef, useMemo } from 'react';
|
|
9
|
+
import { NavCore } from '@ingissa/navcore-core';
|
|
10
|
+
const NavCoreContext = createContext(null);
|
|
11
|
+
/**
|
|
12
|
+
* Wraps children with a shared NavCore engine instance.
|
|
13
|
+
*
|
|
14
|
+
* ```tsx
|
|
15
|
+
* <NavCoreProvider options={{ licenseKey: '...' }}>
|
|
16
|
+
* <MapScreen />
|
|
17
|
+
* <InstructionBanner />
|
|
18
|
+
* </NavCoreProvider>
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export function NavCoreProvider({ children, options }) {
|
|
22
|
+
const engineRef = useRef(null);
|
|
23
|
+
if (!engineRef.current) {
|
|
24
|
+
engineRef.current = new NavCore(options);
|
|
25
|
+
}
|
|
26
|
+
const value = useMemo(() => ({
|
|
27
|
+
engine: engineRef.current,
|
|
28
|
+
}), []);
|
|
29
|
+
return (_jsx(NavCoreContext.Provider, { value: value, children: children }));
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Access the shared NavCore engine from context.
|
|
33
|
+
* Must be used within a <NavCoreProvider>.
|
|
34
|
+
*/
|
|
35
|
+
export function useNavCoreContext() {
|
|
36
|
+
const ctx = useContext(NavCoreContext);
|
|
37
|
+
if (!ctx) {
|
|
38
|
+
throw new Error('useNavCoreContext must be used within a <NavCoreProvider>');
|
|
39
|
+
}
|
|
40
|
+
return ctx;
|
|
41
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @navcore/react-native — React Native bindings
|
|
3
|
+
*
|
|
4
|
+
* Provides hooks for integrating NavCore with React Native apps.
|
|
5
|
+
*/
|
|
6
|
+
export { useNavCore } from './useNavCore';
|
|
7
|
+
export type { UseNavCoreProps, UseNavCoreReturn } from './useNavCore';
|
|
8
|
+
export { NavCoreProvider, useNavCoreContext } from './NavCoreProvider';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useNavCore — React hook for the NavCore navigation engine.
|
|
3
|
+
*
|
|
4
|
+
* Manages engine lifecycle, GPS → engine → state pipeline,
|
|
5
|
+
* event wiring, and optimized re-render batching.
|
|
6
|
+
*
|
|
7
|
+
* Drop-in replacement for the existing Go4Exams useNavCore hook.
|
|
8
|
+
*/
|
|
9
|
+
import { NavCore, type NavCoreOptions, type NavCoreState, type NavInstruction, type Coordinate } from '@ingissa/navcore-core';
|
|
10
|
+
export interface UseNavCoreProps {
|
|
11
|
+
/** Current GPS coordinate [lng, lat] */
|
|
12
|
+
gpsCoord: Coordinate | null;
|
|
13
|
+
/** GPS bearing in degrees */
|
|
14
|
+
gpsBearing?: number | null;
|
|
15
|
+
/** GPS accuracy in metres */
|
|
16
|
+
gpsAccuracy?: number | null;
|
|
17
|
+
/** GPS timestamp (ms since epoch) */
|
|
18
|
+
gpsTimestamp?: number | null;
|
|
19
|
+
/** Current speed in m/s */
|
|
20
|
+
speed: number;
|
|
21
|
+
/** Route geometry [lng, lat][] */
|
|
22
|
+
routeGeometry: Coordinate[] | null;
|
|
23
|
+
/** Navigation instructions */
|
|
24
|
+
instructions?: NavInstruction[];
|
|
25
|
+
/** Whether navigation has been started by the user */
|
|
26
|
+
isNavigating: boolean;
|
|
27
|
+
/** Engine configuration */
|
|
28
|
+
options?: NavCoreOptions;
|
|
29
|
+
/** Resume navigation at a specific route index (after rejoin) */
|
|
30
|
+
resumeAtIndex?: number | null;
|
|
31
|
+
/** Ref for external camera output (map camera integration) */
|
|
32
|
+
outputRef?: React.MutableRefObject<{
|
|
33
|
+
coord: Coordinate;
|
|
34
|
+
bearing: number;
|
|
35
|
+
speed: number;
|
|
36
|
+
} | null>;
|
|
37
|
+
/** Called when deviation is confirmed */
|
|
38
|
+
onDeviation?: (event: {
|
|
39
|
+
anchorIndex: number;
|
|
40
|
+
ghostCoord: Coordinate;
|
|
41
|
+
}) => void;
|
|
42
|
+
/** Called when rejoin completes */
|
|
43
|
+
onRejoin?: (event: {
|
|
44
|
+
resumeIndex: number;
|
|
45
|
+
}) => void;
|
|
46
|
+
/** Called when an instruction triggers */
|
|
47
|
+
onInstruction?: (instruction: NavInstruction) => void;
|
|
48
|
+
/** Called when arrival is detected */
|
|
49
|
+
onArrival?: () => void;
|
|
50
|
+
/** UI polling rate in Hz (default 30) */
|
|
51
|
+
pollRateHz?: number;
|
|
52
|
+
}
|
|
53
|
+
export interface UseNavCoreReturn extends NavCoreState {
|
|
54
|
+
/** The raw NavCore engine instance (for advanced usage) */
|
|
55
|
+
engine: NavCore;
|
|
56
|
+
}
|
|
57
|
+
export declare function useNavCore({ gpsCoord, gpsBearing, gpsAccuracy, gpsTimestamp, speed, routeGeometry, instructions, isNavigating, options, resumeAtIndex, outputRef, onDeviation, onRejoin, onInstruction, onArrival, pollRateHz, }: UseNavCoreProps): UseNavCoreReturn;
|
|
58
|
+
//# sourceMappingURL=useNavCore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useNavCore.d.ts","sourceRoot":"","sources":["../src/useNavCore.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,OAAO,EAAE,KAAK,cAAc,EAAqB,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAIjJ,MAAM,WAAW,eAAe;IAC9B,wCAAwC;IACxC,QAAQ,EAAE,UAAU,GAAG,IAAI,CAAC;IAC5B,6BAA6B;IAC7B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,6BAA6B;IAC7B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,qCAAqC;IACrC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,2BAA2B;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,aAAa,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;IACnC,8BAA8B;IAC9B,YAAY,CAAC,EAAE,cAAc,EAAE,CAAC;IAChC,sDAAsD;IACtD,YAAY,EAAE,OAAO,CAAC;IACtB,2BAA2B;IAC3B,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,iEAAiE;IACjE,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,8DAA8D;IAC9D,SAAS,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC;QACjC,KAAK,EAAE,UAAU,CAAC;QAClB,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;KACf,GAAG,IAAI,CAAC,CAAC;IACV,yCAAyC;IACzC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,UAAU,CAAA;KAAE,KAAK,IAAI,CAAC;IAC/E,mCAAmC;IACnC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACpD,0CAA0C;IAC1C,aAAa,CAAC,EAAE,CAAC,WAAW,EAAE,cAAc,KAAK,IAAI,CAAC;IACtD,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,yCAAyC;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACpD,2DAA2D;IAC3D,MAAM,EAAE,OAAO,CAAC;CACjB;AAID,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,UAAU,EACV,WAAW,EACX,YAAY,EACZ,KAAK,EACL,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,aAAa,EACb,SAAS,EACT,WAAW,EACX,QAAQ,EACR,aAAa,EACb,SAAS,EACT,UAAe,GAChB,EAAE,eAAe,GAAG,gBAAgB,CAwJpC"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useNavCore — React hook for the NavCore navigation engine.
|
|
3
|
+
*
|
|
4
|
+
* Manages engine lifecycle, GPS → engine → state pipeline,
|
|
5
|
+
* event wiring, and optimized re-render batching.
|
|
6
|
+
*
|
|
7
|
+
* Drop-in replacement for the existing Go4Exams useNavCore hook.
|
|
8
|
+
*/
|
|
9
|
+
import { useState, useEffect, useRef, useMemo } from 'react';
|
|
10
|
+
import { NavCore } from '@ingissa/navcore-core';
|
|
11
|
+
// ── Hook ──────────────────────────────────────────────────────
|
|
12
|
+
export function useNavCore({ gpsCoord, gpsBearing, gpsAccuracy, gpsTimestamp, speed, routeGeometry, instructions, isNavigating, options, resumeAtIndex, outputRef, onDeviation, onRejoin, onInstruction, onArrival, pollRateHz = 30, }) {
|
|
13
|
+
// ── 1. Engine singleton ───────────────────────────────────────
|
|
14
|
+
const navRef = useRef(null);
|
|
15
|
+
if (!navRef.current) {
|
|
16
|
+
navRef.current = new NavCore(options);
|
|
17
|
+
}
|
|
18
|
+
const engine = navRef.current;
|
|
19
|
+
const [state, setState] = useState(() => engine.getState());
|
|
20
|
+
// ── 2. Event wiring ───────────────────────────────────────────
|
|
21
|
+
// 2a. Deviation
|
|
22
|
+
useEffect(() => {
|
|
23
|
+
if (!onDeviation)
|
|
24
|
+
return;
|
|
25
|
+
const handler = (data) => onDeviation(data);
|
|
26
|
+
engine.on('deviation', handler);
|
|
27
|
+
return () => { engine.off('deviation', handler); };
|
|
28
|
+
}, [engine, onDeviation]);
|
|
29
|
+
// 2b. Rejoin
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
if (!onRejoin)
|
|
32
|
+
return;
|
|
33
|
+
const handler = (data) => onRejoin(data);
|
|
34
|
+
engine.on('rejoined', handler);
|
|
35
|
+
return () => { engine.off('rejoined', handler); };
|
|
36
|
+
}, [engine, onRejoin]);
|
|
37
|
+
// 2c. Instruction
|
|
38
|
+
useEffect(() => {
|
|
39
|
+
if (!onInstruction)
|
|
40
|
+
return;
|
|
41
|
+
const handler = (data) => onInstruction(data);
|
|
42
|
+
engine.on('instruction', handler);
|
|
43
|
+
return () => { engine.off('instruction', handler); };
|
|
44
|
+
}, [engine, onInstruction]);
|
|
45
|
+
// 2d. Arrival
|
|
46
|
+
useEffect(() => {
|
|
47
|
+
if (!onArrival)
|
|
48
|
+
return;
|
|
49
|
+
const handler = () => onArrival();
|
|
50
|
+
engine.on('arrival', handler);
|
|
51
|
+
return () => { engine.off('arrival', handler); };
|
|
52
|
+
}, [engine, onArrival]);
|
|
53
|
+
// ── 3. Route sync ────────────────────────────────────────────
|
|
54
|
+
useEffect(() => {
|
|
55
|
+
if (routeGeometry && routeGeometry.length >= 2) {
|
|
56
|
+
engine.setRoute(routeGeometry, instructions);
|
|
57
|
+
}
|
|
58
|
+
}, [engine, routeGeometry]);
|
|
59
|
+
// ── 4. Instructions sync (can change independently of route) ──
|
|
60
|
+
useEffect(() => {
|
|
61
|
+
if (instructions && instructions.length > 0 && routeGeometry && routeGeometry.length >= 2) {
|
|
62
|
+
engine.setRoute(routeGeometry, instructions);
|
|
63
|
+
}
|
|
64
|
+
}, [engine, instructions]);
|
|
65
|
+
// ── 5. GPS → engine pipeline ──────────────────────────────────
|
|
66
|
+
useEffect(() => {
|
|
67
|
+
if (!gpsCoord || !isNavigating)
|
|
68
|
+
return;
|
|
69
|
+
const gpsUpdate = {
|
|
70
|
+
coord: gpsCoord,
|
|
71
|
+
accuracy: gpsAccuracy ?? null,
|
|
72
|
+
bearing: gpsBearing ?? null,
|
|
73
|
+
speed,
|
|
74
|
+
timestamp: gpsTimestamp ?? Date.now(),
|
|
75
|
+
};
|
|
76
|
+
engine.update(gpsUpdate);
|
|
77
|
+
}, [engine, gpsCoord, gpsAccuracy, gpsBearing, gpsTimestamp, speed, isNavigating]);
|
|
78
|
+
// ── 6. Start navigation ───────────────────────────────────────
|
|
79
|
+
useEffect(() => {
|
|
80
|
+
if (isNavigating) {
|
|
81
|
+
engine.startNavigation();
|
|
82
|
+
}
|
|
83
|
+
}, [engine, isNavigating]);
|
|
84
|
+
// ── 7. Optimized state polling ────────────────────────────────
|
|
85
|
+
// Polls at pollRateHz to batch state reads and minimize re-renders.
|
|
86
|
+
// Only triggers setState when positional properties actually change.
|
|
87
|
+
useEffect(() => {
|
|
88
|
+
if (!isNavigating)
|
|
89
|
+
return;
|
|
90
|
+
const lastRef = {
|
|
91
|
+
snapped: [0, 0],
|
|
92
|
+
bearing: 0,
|
|
93
|
+
raw: [0, 0],
|
|
94
|
+
};
|
|
95
|
+
const intervalMs = Math.round(1000 / pollRateHz);
|
|
96
|
+
const poll = () => {
|
|
97
|
+
const live = engine.getState();
|
|
98
|
+
let changed = false;
|
|
99
|
+
// Bearing delta
|
|
100
|
+
if (Math.abs(live.bearing - lastRef.bearing) > 0.1) {
|
|
101
|
+
lastRef.bearing = live.bearing;
|
|
102
|
+
changed = true;
|
|
103
|
+
}
|
|
104
|
+
// Snapped coordinate delta
|
|
105
|
+
if (live.snappedCoord &&
|
|
106
|
+
(live.snappedCoord[0] !== lastRef.snapped[0] ||
|
|
107
|
+
live.snappedCoord[1] !== lastRef.snapped[1])) {
|
|
108
|
+
lastRef.snapped = [live.snappedCoord[0], live.snappedCoord[1]];
|
|
109
|
+
changed = true;
|
|
110
|
+
}
|
|
111
|
+
// Raw GPS delta
|
|
112
|
+
if (live.rawGpsCoord &&
|
|
113
|
+
(live.rawGpsCoord[0] !== lastRef.raw[0] ||
|
|
114
|
+
live.rawGpsCoord[1] !== lastRef.raw[1])) {
|
|
115
|
+
lastRef.raw = [live.rawGpsCoord[0], live.rawGpsCoord[1]];
|
|
116
|
+
changed = true;
|
|
117
|
+
}
|
|
118
|
+
if (changed) {
|
|
119
|
+
setState(live);
|
|
120
|
+
}
|
|
121
|
+
// Camera output ref
|
|
122
|
+
if (outputRef?.current !== undefined) {
|
|
123
|
+
outputRef.current = {
|
|
124
|
+
coord: live.snappedCoord ?? lastRef.snapped,
|
|
125
|
+
bearing: live.bearing,
|
|
126
|
+
speed: live.currentSpeed,
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
const id = setInterval(poll, intervalMs);
|
|
131
|
+
return () => clearInterval(id);
|
|
132
|
+
}, [engine, isNavigating, pollRateHz, outputRef]);
|
|
133
|
+
// ── 8. Cleanup ────────────────────────────────────────────────
|
|
134
|
+
useEffect(() => {
|
|
135
|
+
return () => {
|
|
136
|
+
engine.destroy();
|
|
137
|
+
navRef.current = null;
|
|
138
|
+
};
|
|
139
|
+
}, [engine]);
|
|
140
|
+
// ── 9. Stable return ──────────────────────────────────────────
|
|
141
|
+
return useMemo(() => ({
|
|
142
|
+
...state,
|
|
143
|
+
engine,
|
|
144
|
+
}), [state, engine]);
|
|
145
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ingissa/navcore-react-native",
|
|
3
|
+
"version": "1.0.3",
|
|
4
|
+
"description": "React Native bindings for the NavCore navigation engine.",
|
|
5
|
+
"author": "Ingissa <8abnav@gmail.com>",
|
|
6
|
+
"license": "Commercial",
|
|
7
|
+
"homepage": "https://navcore-web.vercel.app/",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/ingissa/ingissa-navcore-examples.git"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/ingissa/ingissa-navcore-examples/issues"
|
|
14
|
+
},
|
|
15
|
+
"main": "dist/index.js",
|
|
16
|
+
"module": "dist/index.mjs",
|
|
17
|
+
"types": "dist/index.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"import": "./dist/index.mjs",
|
|
21
|
+
"require": "./dist/index.js",
|
|
22
|
+
"types": "./dist/index.d.ts"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"files": ["dist"],
|
|
26
|
+
"sideEffects": false,
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public"
|
|
29
|
+
},
|
|
30
|
+
"engines": { "node": ">=18" },
|
|
31
|
+
"scripts": {
|
|
32
|
+
"build": "tsc -p tsconfig.build.json",
|
|
33
|
+
"lint": "tsc --noEmit",
|
|
34
|
+
"prepublishOnly": "npm run build"
|
|
35
|
+
},
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"@ingissa/navcore-core": "^1.0.3",
|
|
38
|
+
"react": ">=18.0.0",
|
|
39
|
+
"react-native": ">=0.72.0",
|
|
40
|
+
"react-native-maps": ">=1.0.0"
|
|
41
|
+
},
|
|
42
|
+
"peerDependenciesMeta": {
|
|
43
|
+
"react-native-maps": { "optional": true }
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {}
|
|
46
|
+
}
|