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

@sequenzy/react-native-geofences

v0.2.3

Published

Geofencing for the Sequenzy React Native SDK: native region monitoring on iOS and Android reports when signed-in users enter or leave your places

Readme

Sequenzy geofencing for React Native

Reports when the signed-in contact enters or leaves your Sequenzy geofences, so visits can start sequences and build segments. Region monitoring is native (Core Location on iOS, Google Play services on Android) and keeps working while the app is in the background or not running.

This is an Expo module: it needs a development build (npx expo run:ios), not Expo Go. Bare React Native apps need expo installed (npx install-expo-modules).

Install

npx expo install @sequenzy/react-native @sequenzy/react-native-geofences
{
  "expo": {
    "plugins": [
      [
        "@sequenzy/react-native-geofences",
        {
          "whenInUsePermission": "Shows offers for stores near you.",
          "alwaysPermission": "Tells you about offers when you arrive at a store, even when the app is closed."
        }
      ]
    ]
  }
}

The config plugin adds the iOS location usage strings. On Android the module declares fine, coarse and background location; Google Play asks apps that use background location for a declaration.

Use

import { Sequenzy } from "@sequenzy/react-native";
import { SequenzyGeofences } from "@sequenzy/react-native-geofences";

Sequenzy.configure({ ... });
void SequenzyGeofences.start(); // every launch, after configure

// Once the user agreed to location-based messages:
await SequenzyGeofences.requestAuthorization(); // "While using", then "Always"
await SequenzyGeofences.enable();

await SequenzyGeofences.disable(); // the user withdrew consent
const status = await SequenzyGeofences.status();

Only identified contacts are tracked: nothing is watched or sent until Sequenzy.identify succeeds, and Sequenzy.reset stops it. Geofencing needs "Always" access with precise location. The module registers the nearest geofences (19 on iOS, 49 on Android; lower with enable({ maxRegions }) when the app watches regions of its own) plus one region around the device, and fetches the next ones when the device leaves it.

Native code reports transitions itself while JavaScript is not running, with the identity token the module last handed it. Configure an identityTokenProvider: tokens that expire within three days, or that the server rejects, are replaced through it. A visit recorded without a connection is sent with the next visit, or when the app starts or opens, within 24 hours.

Apps that monitor regions themselves can skip this module and call Sequenzy.fetchNearbyGeofences and Sequenzy.trackGeofenceTransition from @sequenzy/react-native.

Links