Skip to content

Conversation

@Saransh977
Copy link
Contributor

Fix: Add React Native New Architecture (Fabric) Support for HyperFragmentView

This PR fixes the issue where HyperFragmentView was not visible in React Native 0.75+ apps using the new architecture (Fabric).

Problem: HyperFragmentView relied on UIManager.dispatchViewManagerCommand() which doesn't work in Fabric architecture.

Solution: Added dual architecture support by implementing:

Android: @ReactProp methods for direct prop handling in new architecture
iOS: RCT_EXPORT_VIEW_PROPERTY macros for Fabric compatibility
React Native: Direct prop passing to native components
Result: HyperFragmentView now works seamlessly in both old (Bridge) and new (Fabric) architectures with zero breaking changes.

Files Changed:

android/.../HyperFragmentViewManager.java - Added @ReactProp methods
ios/HyperSdkReact.mm - Added RCT_EXPORT_VIEW_PROPERTY support
src/HyperFragmentView.tsx - Added direct prop passing

@Saransh977 Saransh977 force-pushed the new-architecture-change branch from bab418d to fbba0ab Compare October 8, 2025 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant