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

@hituchhimpa/react-native-entrupy

v1.0.4

Published

React Native wrapper for Entrupy SDK

Readme

react-native-entrupy

GitHub repo npm version

A robust, developer-friendly React Native wrapper for the Entrupy SDK. This library allows you to easily integrate Entrupy's authentication and capture services into your React Native iOS and Android applications.


🛑 Prerequisites (Important)

Before you begin, you must register your application with Entrupy:

  1. Register Package Names: You need to register your Android applicationId and iOS Bundle Identifier on the Entrupy Developer Portal. If these are not registered, the SDK will fail to authenticate.
  2. Entrupy Credentials: Obtain your Entrupy access tokens/keys from your Entrupy dashboard.
  3. Private Repository Access: If this repository is hosted privately, ensure that the user installing it has their Git username and Personal Access Token (PAT) configured in their system to fetch the package.

📦 Installation

Install the package using your preferred package manager:

# Using npm
npm install @hituchhimpa/react-native-entrupy

# Using yarn
yarn add @hituchhimpa/react-native-entrupy

🍎 iOS Setup

After installing the package, you need to install the iOS dependencies via CocoaPods:

cd ios
pod install
cd ..

Note: Make sure your iOS deployment target in Podfile matches the Entrupy SDK minimum requirements (usually iOS 13.0+).

🤖 Android Setup

Auto-linking handles the project setup for Android, but since the Entrupy Android SDK is hosted on a private GitHub Maven registry, you MUST provide GitHub credentials to download it during the build process.

  1. Ensure your minSdkVersion in your app's android/build.gradle is set to API 24 or higher.
  2. Add the Entrupy Maven repository to your root android/build.gradle under the allprojects > repositories block. You MUST provide your GitHub credentials to download it. You can set them as environment variables (GITHUB_USER and GITHUB_TOKEN) or add them to your ~/.gradle/gradle.properties:
allprojects {
    repositories {
        // ... other repositories ...
        maven {
            url = uri("https://maven.pkg.github.com/entrupy/entrupy-sdk-android")
            credentials {
                username = providers.gradleProperty("gpr.user").orNull ?: providers.environmentVariable("GITHUB_USER").orNull ?: ""
                password = providers.gradleProperty("gpr.token").orNull ?: providers.environmentVariable("GITHUB_TOKEN").orNull ?: ""
            }
        }
    }
}

If these are missing, your Android build will fail with a 401 Unauthorized or "Could not find com.entrupy:sdk" error during the final linking phase.


🛠 Usage

Here is a complete example of how to use the SDK in your app:

import React, { useState } from 'react';
import { View, Text, Button, StyleSheet } from 'react-native';
import {
  startCapture,
  generateAuthorizationRequest,
} from '@hituchhimpa/react-native-entrupy';

export default function App() {
  const [status, setStatus] = useState<string>('Ready');

  const handleStartCapture = async () => {
    try {
      setStatus('Starting capture session...');
      // Make sure your bundle ID / package name is registered on Entrupy!
      const isSuccess = await startCapture(
        'Bags',
        'Gucci',
        'Handbag',
        'item_12345'
      );
      setStatus(`Capture Success: ${isSuccess}`);
    } catch (error: any) {
      setStatus(`Error: ${error.message}`);
    }
  };

  return (
    <View style={styles.container}>
      <Text style={styles.status}>Status: {status}</Text>
      <Button title="Start Entrupy Capture" onPress={handleStartCapture} />
    </View>
  );
}

const styles = StyleSheet.create({
  container: { flex: 1, justifyContent: 'center', alignItems: 'center' },
  status: { fontSize: 16, marginBottom: 20, fontWeight: 'bold' },
});

🧹 Troubleshooting & Clean Builds

Sometimes React Native caches can cause issues. If you face any native build errors, run the following commands to clean your project:

Clean Android

cd android
./gradlew clean
cd ..
# To rebuild
npx react-native run-android

Clean iOS

cd ios
rm -rf Pods Podfile.lock
pod install --repo-update
cd ..
# To rebuild
npx react-native run-ios

Clean React Native Cache (Metro)

npm start -- --reset-cache
# or with Yarn
yarn start --reset-cache

🤝 Contributing

📄 License

MIT


Made with ❤️ by hituchhimpa7