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 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-native-ai-navigation-sdk

v0.4.10

Published

A react native wrapper around combain ai navigation sdk

Readme

react-native-ai-navigation-sdk

A react native wrapper around combain ai navigation sdk

Installation

npm install react-native-ai-navigation-sdk

Usage

import { initSDK } from 'react-native-ai-navigation-sdk';

// ...
const sync: SyncingInterval = {
  interval: 1,
};

const routingConfig: ReactRoutingConfig = {
  routableNodesOptions: ReactRoutableNodesOptions.All,
};

const indoorNavigationSDKConfig: ReactIndoorNavigationSDKConfig = {
  apiKey: "API-key",
  routingConfig: routingConfig,
  syncingInterval: sync,
};

const initializeSDK = async () => {
  try {
    await initSDK(indoorNavigationSDKConfig);
    console.log('SDK initialized');
    await start()
    console.log("SDK STARTED")
  } catch (error) {
    console.error('SDK initialization error:', error);
  }
};

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Installation

todo: https://github.com/zoontek/react-native-permissions?tab=readme-ov-file#expo Made with create-react-native-library

Android installment

Currently only works with android

In react native without expo

Go to the prebuild android folder, change minSDK version from 23 to 28

add following to the build.gradle folder in the app directory


 repositories {
    mavenCentral()
    google()
    maven{
      url "https://gitlab.com/api/v4/projects/3194773/packages/maven"
    }

  }

If you are running an expo application generate an android prebuild by running

npx expo run:android

Does not work with expo go, need to run the sdk in native apps Use the generated prebuild and do the same steps as in react app without expo

React native eventlisteners

For the native code to communciate back to the JS implementation, the js has to listen to certain events by calling

const eventListener = DeviceEventEmitter.addListener('eventName', (params) => {
  setParam(param);
});

Each event will give a param which is a readableMap that can be used to match certain datatypes in the SDK

Event Types in React Native AI Indoor SDK

The React Native AI Indoor SDK provides various events to help you track and manage different aspects of the indoor navigation system. Below is a list of the available event types:

  • routeUpdated Triggered when the route information is updated. Will return ReactNativeRoutingPositionas param

  • nextScanTimeUpdate Indicates the next scan time update. Will return number as param but to extract the number simply do param.nextScan

  • newModelUpdate Signifies an update to the model. Will return string as param but to extract the number simply do param.modelType

  • wifiUpdate Signifies an update to the wifi pipe results. Will return ReactNativeWifiPipeResult as param

  • bleUpdate Relates to updates in Bluetooth pipe results. Will return ReactNativeBLePipeResult as param

  • newGpsLocationUpdate Reflects a new GPS location update. Will return ReactNativeGpsLocation as param

  • localLookUpPipeResultUpdate Updates related to local lookup results. Will return ReactNativeLookUpPipeResult as param

  • confidenceScoreUpdate Indicates a change in the confidence score. Will return number as param to extract the number call param.confidenceScore

  • usingGPSUpdate Shows updates on the usage of GPS. Returns if gps is used for positioning or not as param

iOS setup

Permissiosn

To setup iOS permissions some setup is needed, first add this to your Podfile:

```diff
# Transform this into a `node_require` generic function:
- # Resolve react_native_pods.rb with node to allow for hoisting
- require Pod::Executable.execute_command('node', ['-p',
-   'require.resolve(
-     "react-native/scripts/react_native_pods.rb",
-     {paths: [process.argv[1]]},
-   )', __dir__]).strip

+ def node_require(script)
+   # Resolve script with node to allow for hoisting
+   require Pod::Executable.execute_command('node', ['-p',
+     "require.resolve(
+       '#{script}',
+       {paths: [process.argv[1]]},
+     )", __dir__]).strip
+ end

# Use it to require both react-native's and this package's scripts:
+ node_require('react-native/scripts/react_native_pods.rb')
+ node_require('react-native-permissions/scripts/setup.rb')

+ setup_permissions([
+   'LocationWhenInUse',
+   'Motion',
+ ])

Then execute pod install in your ios directory

Then add these keys to your Info.plist

<key>NSLocationWhenInUseUsageDescription</key>
<string>We need this permisison to determine your location</string>
<key>NSMotionUsageDescription</key>
<string>We need this permisison to determine your location</string>