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-transtracker-library

v0.1.6

Published

Tracker Library

Readme

react-native-transtracker-library

TransTracker Library

Installation

npm install react-native-transtracker-library

Configuration

We recommend you to use the react-native-permissions ( or any similliar ) library to request the permission.

  • iOS permission you can request PERMISSIONS.IOS.LOCATION_ALWAYS Info.plist
<key>NSLocationAlwaysUsageDescription</key>
<string>Needed to access location</string>

<key>UIBackgroundModes</key>
<array>
	<string>location</string>
	<string>processing</string>
</array>

Podfile

# ( Check react-native-permissions for setup)
permissions_path = '../node_modules/react-native-permissions/ios'
pod 'Permission-LocationAccuracy', :path => "#{permissions_path}LocationAccuracy"
pod 'Permission-LocationAlways', :path => "#{permissions_path}LocationAlways"
  • Android permission you can request PERMISSIONS.ANDROID.ACCESS_FINE_LOCATION and PERMISSIONS.ANDROID.ACCESS_BACKGROUND_LOCATION
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

Please see the example folder for more detail.

Usage

/// Import service
import { trackerEmitter, initiateService, startService, stopService } from 'react-native-transtracker-library';

/// Received event from native ( if needed )
trackerEmitter.addListener('onLocationChanged', function (e) {
    setLocation(e);
});

/// Initiate service location before initiate try to check permission location
/// [apiKey] from TransTRACK
/// [externalId] is unique id to identify the account from telematics ( FMS ) web application
/// [trackerId] is used to identify the device ( IMEI or other ) it can be same as externalId
/// different IMEI, will be charged different fee for each device
initiateService(apiKey, externalId, trackerId);

Support and feedback

  • To renew the subscription, contact our sales team at [email protected]
  • For any other info, reach our support or post and submit a feature request or a bug through our Github issues.
  • See the contributing guide to learn how to contribute to the repository and the development workflow.

About TransTRACK.ID

We are here with the aim of providing the right solutions for the telematics world in Indonesia. Different & unique cultural wealth is the main key to our solution for Indonesia. Since the beginning of 2019, we have been operating, we have always learned to provide solutions. In almost all regions in Indonesia our solution has been present and we are just starting this story.