@dtechph/wayfinding-react-native
v1.8.0
Published
Duon Wayfinding SDK — React Native / Expo components
Readme
@dtechph/wayfinding-react-native
React Native / Expo components for the Duon Wayfinding SDK (DuonMapView, DuonMallSelector).
Install
npm install @dtechph/wayfinding-react-native react-native-webview
# Optional — native Situm maps with live positioning + auto analytics:
npm install @situm/react-nativePublished on the public npm registry; no registry auth required.
Full integration guide: Mobile docs.
Usage
import {
DuonWayfinding,
DuonMallSelector,
DuonMapView,
} from "@dtechph/wayfinding-react-native";
DuonWayfinding.initialize({
apiBaseUrl: "https://your-backend.example.com",
apiKey: "duon_sk_live_...",
});
const malls = await DuonWayfinding.fetchMalls();
// <DuonMallSelector malls={malls} onSelect={setMall} />
// <DuonMapView mall={mall} />Pass mall rather than url — that is what lets Situm malls use the native map and keeps
analytics attributed to the right building.
