npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@mappedin/react-native-sdk

v6.9.1

Published

Mappedin SDK for React Native enables integration of Mappedin's indoor mapping and navigation capabilities into React Native applications. This SDK provides a native wrapper around Mappedin's web-based mapping technology using WebView for cross-platform c

Readme

@mappedin/react-native-sdk

Mappedin SDK for React Native enables integration of Mappedin's indoor mapping and navigation capabilities into React Native applications. This SDK provides a native wrapper around Mappedin's web-based mapping technology using WebView for cross-platform compatibility.

✨ Features

  • 📱 Cross-Platform - Write once, deploy everywhere with confidence
  • 🎯 Interactive Indoor Maps - Smooth zoom, pan, and rotation controls that feel natural
  • 🧭 Smart Navigation & Wayfinding - Clear turn-by-turn directions your users will love
  • 📍 Points of Interest - Beautifully showcase venue locations and amenities
  • Event-Driven - Comprehensive event system for seamless interactions

🆘 Support & Resources

📦 Installation

npm install @mappedin/react-native-sdk

or

yarn add @mappedin/react-native-sdk

Peer Dependencies

This package requires the following peer dependencies with minimum versions:

  • React: >=16.8.0 (for React Hooks support)
  • React Native: >=0.60.0 (for auto-linking and WebView compatibility)
  • react-native-webview: >=11.0.0 (for stable TypeScript support)
  • @mappedin/mappedin-js (for accessing the latest web SDK features and TypeScript definitions)
npm install react react-native react-native-webview

🚀 Quick Start

Basic Implementation

Get your first map up and running in just a few minutes:

import React, { useEffect } from 'react';
import { View, StyleSheet } from 'react-native';
import { MapView, useMap } from '@mappedin/react-native-sdk';

const MapSetup = () => {
	const { mapData, mapView } = useMap();

	useEffect(() => {
		if (mapData && mapView) {
			console.log('Map is ready!');

			async function initializeMap() {
				// Display all venue labels (experimental feature)
				mapView.Labels.__EXPERIMENTAL__all();

				// Create a smooth tour through all spaces
				for (const space of mapData.getByType('space')) {
					await mapView.Camera.focusOn(space, {
						duration: 1000,
						easing: 'ease-in-out',
					});
				}
			}

			initializeMap();
		}
	}, [mapData, mapView]);

	return null;
};

// Add your Mappedin key, secret and map ID or use a demo key and map
// Demo Key & Maps: https://developer.mappedin.com/docs/demo-keys-and-maps
const App = () => {
	return (
		<View style={styles.container}>
			<MapView
				options={{}}
				mapData={{
					key: 'your-mappedin-key',
					secret: 'your-mappedin-secret',
					mapId: 'your-map-id',
				}}
			>
				<MapSetup />
			</MapView>
		</View>
	);
};

const styles = StyleSheet.create({
	container: {
		flex: 1,
		backgroundColor: '#f0f8ff',
	},
});

export default App;

Advanced Usage with Custom Components

import React from 'react';
import { MapView, useMap } from '@mappedin/react-native-sdk';

const CustomMapComponent = () => {
	const { mapData, mapView } = useMap();

	const handleSpaceClick = async space => {
		// Focus on clicked space with smooth animation
		await mapView.Camera.focusOn(space, {
			duration: 1500,
			easing: 'ease-out',
		});
	};

	// Add your Mappedin key, secret and map ID or use a demo key and map
	// Demo Key & Maps: https://developer.mappedin.com/docs/demo-keys-and-maps
	return (
		<MapView
			style={{ flex: 1 }}
			mapData={{
				key: 'mik_your_key_here',
				secret: 'mis_your_secret_here',
				mapId: 'your_map_id_here',
			}}
			options={
				{
					// Custom options go here
				}
			}
		>
			{/* Your custom map setup logic */}
		</MapView>
	);
};

🔧 API Summary

Components

MapView

The main component that renders your indoor map with powerful mapping capabilities.

Props:

  • mapData - Configuration object containing your Mappedin credentials
  • options - Additional MapView configuration options
  • style - ViewStyle for the map container
  • children - Custom components to render within the map context

useMap Hook

Access map data and view controls from any child component.

Returns:

  • mapData - Venue data and spatial information
  • mapView - Map control methods and interactions

Key Methods

// Camera Controls
await mapView.Camera.focusOn(target, options);

// Labels
mapView.Labels.__EXPERIMENTAL__all(); // Show all labels (experimental feature)
mapView.Labels.hide(); // Hide all labels

📚 Examples

Check out our example app in apps/rn-example/ for more detailed implementations, including:

  • Basic map initialization
  • Custom styling and theming
  • Navigation and routing
  • Event handling
  • Advanced interactions

📄 License

See LICENSE.txt for license information.