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 🙏

© 2025 – Pkg Stats / Ryan Hefner

hyper-sdk-react-webview

v1.0.0

Published

React Native WebView with HyperSDK integration for UPI payments. Supports both Old and New Architecture.

Downloads

187

Readme

Hyper SDK React WebView

A React Native WebView component with HyperSDK integration for UPI payments. Supports both React Native Old and New Architecture (Fabric).

Installation

To install using npm:

npm install hyper-sdk-react-webview

To install using yarn:

yarn add hyper-sdk-react-webview

NOTE: Ensure that react-native-webview is also installed as a dependency. Although it is declared as a peer dependency, React Native requires it to be a direct dependency to include its native build files.

React Native New Architecture Support

This library supports both React Native architectures:

  • Old Architecture (Bridge) - React Native 0.60+
  • New Architecture (Fabric) - React Native 0.68+ with New Architecture enabled

No code changes are required when migrating between architectures. See MIGRATION.md for detailed migration instructions.

Usage

Android

Add our package repository to your app's build.gradle:

allprojects {
    repositories {
        maven { url "https://maven.juspay.in/jp-build-packages/hyper-sdk/" }
    }
}

Add the required intent handling in MainActivity.kt:

override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
    super.onActivityResult(requestCode, resultCode, data)
    if (requestCode == HyperWebViewManager.UPI_REQUEST_CODE) {
        HyperWebViewManager.onActivityResult(requestCode, resultCode, data)
    }
}

iOS

Add URI schemes for required UPI apps in Info.plist:

<key>LSApplicationQueriesSchemes</key>
<array>
    <string>credpay</string>
    <string>phonepe</string>
    <string>paytmmp</string>
    <string>tez</string>
    <string>paytm</string>
    <string>bhim</string>
    <string>myairtel</string>
</array>

Run pod install inside the iOS folder of your app.

React Native

You can start using the component in your React Native app:

import HyperWebView from 'hyper-sdk-react-webview';

const MyWebComponent = () => {
  return (
    <HyperWebView
      source={{ uri: 'https://reactnative.dev/' }}
      style={{ flex: 1 }}
      iframeIntegration={false}
    />
  );
};

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | iframeIntegration | boolean | false | Enable iframe integration for UPI payments | | ...rest | WebViewProps | - | All standard react-native-webview props are supported |

How it works

This package wraps the WebView component from react-native-webview and integrates HyperSDK services through a native module approach. This design ensures compatibility with both React Native architectures:

Architecture Overview

  1. JavaScript Layer: Uses react-native-webview directly for maximum compatibility
  2. Native Module: HyperWebViewModule provides bridge between WebView and HyperSDK services
  3. Integration: Automatically attaches HyperWebView services when WebView navigates

Benefits

  • Full compatibility with both Old and New Architecture
  • Minimal overhead - uses official react-native-webview
  • Automatic cleanup - properly manages native resources
  • TypeScript support - full type definitions included

Troubleshooting

New Architecture Issues

If you encounter "Unimplemented component" errors:

  1. Ensure you're using the latest version (v1.0.0+)
  2. Rebuild your project after updating
  3. See MIGRATION.md for detailed troubleshooting

Performance

For optimal performance:

  • Use iframeIntegration={true} only if you are opening juspay payment page in an iframe
  • Implement proper error handling in navigation callbacks
  • Clean up any manual references to avoid memory leaks

License

MIT


Created with create-react-native-library