juspay / juspay/hyper-sdk-react

Incompatibility with New Architecture (React Native 0.82) — “You should not use ReactNativeHost directly” & Missing ReactNativeApplicationEntryPoint

Open
#132 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
9
Forks
25
Avg merge
8h 45m
Merged PRs (30d)
3

Description

Environment:
React Native: 0.82.0
hyper-sdk-react: 5.0.3
Android Gradle Plugin: 8.x
Gradle: 9.0
Architecture: New (Fabric + TurboModules) enabled
OS: macOS

When upgrading to React Native 0.82 and enabling the new architecture, the Android build fails with the following error messages:
Step 1: Initial Error
You should not use ReactNativeHost directly in the new Architecture
This happens because hyper-sdk-react uses ReactNativeHost references directly, which are now replaced by new APIs.

Step 2: After attempting to patch (following older SDK patterns)
Build fails with:
error: cannot find symbol
reactInstanceManager = com.facebook.react.ReactNativeApplicationEntryPoint.getReactHost(app).getReactInstanceManager();
^
symbol: class ReactNativeApplicationEntryPoint
location: package com.facebook.react

This indicates that ReactNativeApplicationEntryPoint is no longer available in React Native 0.82.

Expected Behavior

The SDK should compile and run under the new React Native architecture without requiring deprecated or internal API calls.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.