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

@scribeup/react-native-scribeup

v0.7.9

Published

ScribeUp React Native SDK

Readme

ScribeUp React-Native SDK

Easily integrate the ScribeUp subscription-manager experience in any React-Native application. The package is a thin wrapper around the native iOS and Android SDKs, providing a single cross-platform API.


Table of Contents

  1. Installation
    1. Bare React-Native
    2. Expo Projects
  2. Quick Start
  3. Components
    1. ScribeUp (Full Screen)
    2. ScribeUpWidget (Embeddable)
  4. API Reference
  5. Migration Note (0.3.x → 0.6.0)
  6. Example Projects
  7. Troubleshooting
  8. Author
  9. License

Installation

Bare React-Native

npm install @scribeup/react-native-scribeup

The library supports autolinking on both platforms – no additional manual steps are required.

Expo Projects

The SDK works in development builds (aka Expo Dev Client) and production builds generated with eas build.

expo install @scribeup/react-native-scribeup

After installing, create a development build (eas build --profile development) or a production build. The SDK cannot run in the standard Expo Go client because it contains custom native code.


Quick Start

// App.tsx
import React, { useState } from "react";
import { Button, SafeAreaView } from "react-native";
import ScribeUp from "@scribeup/react-native-scribeup";

export default function App() {
  const [visible, setVisible] = useState(false);

  const authenticatedUrl = "https://example.com/subscriptions?token=YOUR_JWT"; // Obtain from your backend (see docs)

  const handleExit = (error: { code?: number; message?: string } | null, data: Record<string, any> | null) => {
    console.log("ScribeUp exited", { error, data });
    setVisible(false);
  };

  const handleEvent = (data: Record<string, any>) => {
    console.log("ScribeUp event", data);
  };

  return (
    <SafeAreaView style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
      <Button title="Manage my subscriptions" onPress={() => setVisible(true)} />

      {/* Mounting the component presents the native view controller / activity */}
      {visible && (
        <ScribeUp
          url={authenticatedUrl}
          productName="Subscription Manager" // optional text in the nav-bar
          onExit={handleExit} // called on success or error
          onEvent={handleEvent}
        />
      )}
    </SafeAreaView>
  );
}

Obtaining the url parameter

url must be a fully authenticated URL for managing the current user's subscriptions. Follow the steps in the ScribeUp documentation to create this URL on your backend.


Components

The SDK provides two components for different integration scenarios:

ScribeUp (Full Screen)

The main component that presents a full-screen modal subscription manager.

ScribeUpWidget (Embeddable)

A lightweight widget view that can be embedded anywhere in your app and sized however you want.

import { ScribeUpWidget, ScribeupWidgetViewRef } from "@scribeup/react-native-scribeup";

export default function MyComponent() {
  const widgetRef = useRef<ScribeupWidgetViewRef>(null);

  const handleReload = () => {
    widgetRef.current?.reload();
  };


  return (
    <ScribeUpWidget
      ref={widgetRef}
      url="https://your-subscription-url.com"
      style={{ width: '100%', height: 400 }}
    />
  );
}

Key differences from the full-screen component:

  • Takes only one required parameter: url
  • Has no header or navigation controls
  • Can be sized and positioned flexibly
  • Focused purely on displaying web content
  • Provides imperative methods via ref (reload(), loadURL())

API Reference

ScribeUp (Full Screen)

<ScribeUp
  url: string;                              // required – authenticated manage-subscriptions URL
  productName?: string;                     // optional – title in navigation bar
  enableBackButton?: boolean;               // optional (default: true) – controls Android back button/gesture behavior
  onExit?: (error: ExitError|null, data: object|null) => void;
  onEvent?: (data: object) => void;
>

onExit Called when the user exits the flow. Receives two arguments:

  • error: { code: number; message?: string } or null on success
  • data: structured object with optional payload

onEvent Emitted zero or more times during the session to notify about intermediate states or actions (e.g., UI transitions, user actions).

enableBackButton Controls whether the Android back button and back gestures can close the SDK. When set to true (default), users can use the back button or back gesture to exit the subscription manager. When set to false, the back button and gestures are disabled, requiring users to use the in-sdk Exit button to exit. This property only affects Android devices.

ScribeUpWidget (Embeddable)

<ScribeUpWidget
  url: string;              // required – authenticated manage-subscriptions URL
  style?: ViewStyle;        // optional – styling for the widget container
  ref?: ScribeupWidgetViewRef; // optional – ref for imperative methods
/>

Ref methods:

  • reload() – reloads the current page
  • loadURL(url: string) – loads a new URL

Migration Note (0.3.x → 0.6.0)

  • onExit now receives two parameters: (error, data) instead of a single data object.
  • New onEvent(data) listener added for real-time progress updates.

Example Projects

This repository contains two fully-working example apps:

  • example/ – a bare React-Native app.
  • example_expo/ – an Expo Router app using the dev-client.

You can run either example directly from the repository root using the convenience scripts below:

# ---------------------------
# Bare React-Native example
# ---------------------------

# iOS (default)
npm run dev

# Android
npm run dev -- --android

# ---------------------------
# Expo Router example
# ---------------------------

# iOS (default)
npm run expo

# Android
npm run expo -- --android

The first execution may take a while – the scripts:

  1. Build a local tarball of the SDK.
  2. Install it in the corresponding example app.
  3. Install all native dependencies (including CocoaPods on iOS).
  4. Start the Metro bundler and launch the app on the chosen simulator / emulator.

Troubleshooting

  1. iOS: The package '@scribeup/react-native-scribeup' doesn't seem to be linked. Make sure you ran pod install after installing the package and rebuilt the app.
  2. Expo Go crashes when opening the manager. Expo Go does not include native code. Use a dev-client or production build.
  3. Still stuck? Reach us at [email protected] or open an issue.

Author

ScribeUp


License

ScribeUpSDK is released under the MIT license. See the LICENSE file for details.