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

react-native-navigine

v1.1.9

Published

Navigine SDK for react-native

Readme

SWUbanner

What is React Native?

React Native is an open-source UI software framework, used to develop applications for Android, iOS. React Native offers a large amount of inbuilt components and APIs and is well suited for creating location-powered applications with various features, such as indoor wayfinding, real time positioning and geomarketing instruments.

Description

The following sections contain a library for using our SDK (android, iOS) in react-native. Our solution provides a 100% precise on both iOS and Android for react native apps.

Useful links

  1. SDK Documentation
  2. Refer to the Navigine official documentation for complete list of downloads, useful materials, information about the company, and so on.
  3. Get started with Navigine to get full access to Navigation services, SDKs, and applications.
  4. Refer to the Navigine User Manual for complete product usage guidelines.
  5. Find company contact information at the official website under Contact tab.
  6. Find information about Navigine’s Open Source Initiative here

Values and benefits

React Native is a versatile platform that can be used in many industries, such as retail, healthcare, logistics, and transportation. With the Navigine SDK for React Native, businesses in these industries can take advantage of accurate indoor positioning and tracking to improve their operations and provide a better experience for their customers.

Using the Navigine SDK for React Native provides several benefits, including:

High accuracy: Navigine's indoor positioning technology is highly accurate, with an average accuracy of 2-5 meters, ensuring that businesses can rely on the location data for their operations.

Customizable: The Navigine SDK for React Native is highly customizable, allowing businesses to tailor the technology to their specific needs.

Scalable: The SDK is designed to be scalable, making it suitable for businesses of all sizes.

User-friendly: Navigine's SDK is user-friendly, with a simple and intuitive interface that makes it easy to integrate into any application.

For example, in retail, businesses can use indoor positioning to guide customers to products they are looking for and provide personalized offers based on their location in the store. In healthcare, indoor positioning can be used to track patients and medical equipment, improving efficiency and reducing errors. In logistics and transportation, indoor positioning can be used to track assets, optimize routes, and improve safety.

In summary, the Navigine SDK for React Native provides businesses with an accurate and reliable indoor positioning solution that can be customized to their specific needs, improving their operations and providing a better experience for their customers.

Getting started - project example

Basic Usage

// js
import {
    IconMapObject,
    PolylineMapObject,
    CircleMapObject,
    Animation,
    Position,
    Point,
    LocationPoint,
    RoutePath,
    LocationPolyline,
    Polyline
} from 'react-native-navigine'

import LocationView from 'react-native-navigine';

Components usage

import React from 'react';
import LocationView from 'react-native-navigine';

class Map extends React.Component {
  render() {
    return (
      <LocationView
        ref={this.view}
        style={{ flex: 1 }}
        size={{
            width: 22,
            height: 22,
        }}
      />
    );
  }
}

Common types

export interface Point {
    x: number,
    y: number,
}

export interface Polyline {
    points: Point[]
}

export interface LocationPoint {
  locationId: number,
  sublocationId: number,
  point: Point,
}

export interface LocationPolyline {
    locationId: number,
    sublocationId: number,
    polyline: Polyline,
}

export interface Position {
  point: Point;
  locationId: number;
  sublocationId: number;
  accuracy: number;
  azimuth: number;
}

export enum RouteEventType {
    TURNLEFT,
    TURNRIGHT,
    TRANSITION,
}

export interface RouteEvent {
    type: RouteEventType;
    value: number;
    distance: number;
  }

export interface RoutePath {
    length: number;
    events: RouteEvent[];
    points: LocationPoint[];
  }

export enum Animation {
    NONE,
    LINEAR,
    CUBIC,
    QUINT,
    SINE,
}

LocationView - main view with sublocation content

LocationView props

  • onPositionUpdated?: (event: NativeSyntheticEvent<Position>) => void;
  • onPathsUpdated?: (event: NativeSyntheticEvent<RoutePath>) => void;
  • onMapPress?: (event: NativeSyntheticEvent<Point>) => void;
  • onMapLongPress?: (event: NativeSyntheticEvent<Point>) => void;

LocationView methods (avaliable via ref)

  • public setLocationId(locationId: number)
  • public setSublocationId(sublocationId: number)
  • public setTarget(locationPoint: LocationPoint)
  • public clearTargets()
  • public screenPositionToMeters(screenPosition: Point, callback: (position: Point) => void)

IconMapObject - map object created by user with bitmap image inside

Example of usage

import { IconMapObject } from 'react-native-navigine'

<LocationView
    ref={this.view}
    style={styles.locationView}
    onPositionUpdated={this.onPositionUpdated}
    onPathsUpdated={this.onPathsUpdated}
    onMapPress={this.onMapPress}
    onMapLongPress={this.onMapLongPress}>
    <IconMapObject
        locationPoint={this.state.userPosition}
        source={USER}
        size={{
            width: 22,
            height: 22,
        }}
        styling={'{ order: 1, collide: false}'}
        visible={true}
        interactive={true}
    />
</LocationView>

IconMapObject props

  locationPoint: LocationPoint;
  source?: ImageSourcePropType;
  size?: { width: number, height: number };
  styling?: string;
  visible?: boolean;
  interactive?: boolean;