@mappedin/react-native-sdk 6.0.0-beta.1 → 6.0.0

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/README.md CHANGED
@@ -36,6 +36,7 @@ This package requires the following peer dependencies with minimum versions:
36
36
  - **React**: `>=16.8.0` (for React Hooks support)
37
37
  - **React Native**: `>=0.60.0` (for auto-linking and WebView compatibility)
38
38
  - **react-native-webview**: `>=11.0.0` (for stable TypeScript support)
39
+ - **@mappedin/mappedin-js** (for accessing the latest web SDK features and TypeScript definitions)
39
40
 
40
41
  ```bash
41
42
  npm install react react-native react-native-webview
@@ -63,12 +64,7 @@ const MapSetup = () => {
63
64
  // Display all venue labels (experimental feature)
64
65
  mapView.Labels.__EXPERIMENTAL__all();
65
66
 
66
- // Expand stacked maps with automatic spacing
67
- await mapView.StackedMaps.expand({
68
- distanceBetweenFloors: 'auto',
69
- });
70
-
71
- // Optional: Create a smooth tour through all spaces
67
+ // Create a smooth tour through all spaces
72
68
  for (const space of mapData.getByType('space')) {
73
69
  await mapView.Camera.focusOn(space, {
74
70
  duration: 1000,
@@ -163,7 +159,7 @@ The main component that renders your indoor map with powerful mapping capabiliti
163
159
  **Props:**
164
160
 
165
161
  - `mapData` - Configuration object containing your Mappedin credentials
166
- - `options` - Additional map configuration options
162
+ - `options` - Additional MapView configuration options
167
163
  - `style` - ViewStyle for the map container
168
164
  - `children` - Custom components to render within the map context
169
165
 
@@ -185,11 +181,6 @@ await mapView.Camera.focusOn(target, options);
185
181
  // Labels
186
182
  mapView.Labels.__EXPERIMENTAL__all(); // Show all labels (experimental feature)
187
183
  mapView.Labels.hide(); // Hide all labels
188
-
189
- // Stacked Maps
190
- await mapView.StackedMaps.expand({
191
- distanceBetweenFloors: 'auto' | number,
192
- });
193
184
  ```
194
185
 
195
186
  ## 📚 Examples