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

@apptile/tile-push-react-native

v0.2.1

Published

Tile Push React Native SDK — multi-tenant OTA updates for React Native apps.

Downloads

228

Readme

@apptile/tile-push-react-native

Multi-tenant React Native OTA updates, powered by Tile Push. This is the runtime SDK — wrap your app and devices auto-update on launch. Ship updates with @apptile/tile-push-cli.

Install

npm install @apptile/tile-push-react-native @hot-updater/react-native @hot-updater/core
# or
yarn add @apptile/tile-push-react-native @hot-updater/react-native @hot-updater/core

@hot-updater/react-native and @hot-updater/core are peer dependencies — install them explicitly.

Usage

1. Wrap your root component

import { TilePush } from '@apptile/tile-push-react-native';

function App() {
  return <YourAppRoot />;
}

export default TilePush.wrap({
  appId: 'your-app-id',                // your Tile Push tenant id
  apiUrl: 'https://ota.tile.dev',      // the OTA backend
  updateStrategy: 'fingerprint',       // or 'appVersion'
})(App);

apiUrl is required — there is no shared default (hardcoding one global origin would route every install through it). Use https://ota.tile.dev for the hosted Tile Push backend, or your own deployment.

2. Register the Expo config plugin

Add the package to app.jsonexpo.plugins. This is required for updateStrategy: 'fingerprint' — it injects the native fingerprint hash at expo prebuild so a device only accepts bundles built from a matching native tree:

{
  "expo": {
    "plugins": ["@apptile/tile-push-react-native"]
  }
}

That's the entire integration. Tile Push handles multi-tenant URL routing (/api/check-update/v2/t/{appId}/...), client-side cohort rollout picking, and update download + apply via the underlying SDK.

Configuration

TilePush.wrap({
  // Required
  appId: 'your-app-id',
  apiUrl: 'https://ota.tile.dev',
  updateStrategy: 'fingerprint',

  // Pass through any standard HotUpdater wrap option
  fallbackComponent: MyFallback,
  reloadOnForceUpdate: true,
  requestHeaders: { 'x-client': 'myapp' },
  requestTimeout: 5000,
  onError: (err) => console.error('[Tile]', err),
  onProgress: (progress) => console.log(`download ${progress * 100}%`),
  onNotifyAppReady: (result) => console.log('app ready', result),
})(App);

Alternative: manual init

import { TilePush } from '@apptile/tile-push-react-native';

TilePush.init({
  appId: 'your-app-id',
  apiUrl: 'https://ota.tile.dev',
  updateStrategy: 'fingerprint',
});

const result = await TilePush.checkForUpdate({ updateStrategy: 'fingerprint' });
if (result) await result.updateBundle();

Cohort targeting

Tile Push handles cohort picking transparently. Each device gets a stable cohort value (1–1000) on first launch, persisted natively. When a bundle is rolled out to a subset of cohorts, only devices in that set receive it — the SDK picks the right candidate from the server's response automatically.

For testing, override the device cohort:

import { TilePush } from '@apptile/tile-push-react-native';

TilePush.setCohort('500');           // numeric cohort
TilePush.setCohort('beta-team');     // custom slug for explicit targeting
console.log(TilePush.getCohort());

What's under the hood

A thin wrapper around @hot-updater/react-native (MIT). The wrapper adds a tenant-aware URL builder, client-side cohort picking against the v2 candidates response, an Expo config plugin that injects the fingerprint at build time, and re-exports upstream APIs under Tile Push branding so you only import from @apptile/tile-push-react-native. The native bridge, downloader, applier, store, and hooks are upstream.

License

MIT. See LICENSE for full text including required upstream attribution to the @hot-updater/react-native authors.