[Bridgeless][IOS] bridge
is nil
on Swift when NewArch is enabled
#45232
Labels
Issue: Author Provided Repro
This issue can be reproduced in Snack or an attached project.
Platform: iOS
iOS applications.
Type: New Architecture
Issues and PRs related to new architecture (Fabric/Turbo Modules)
Description
I maintain a native component library and trying to make it work with New Architecture interop. It builds without problem. However, the
bridge
in the view manager instance isnil
and causing the component to crash.To give context, the library is similar to RN Modal where it uses the view component as a host view of a view controller. It needs the
bridge
to attachRCTTouchHandler
to the container view. The library is written inswift
. https://github.com/lodev09/react-native-true-sheetAny ideas or I'm missing something?
Steps to reproduce
example/app.json
and setnewArchEnabled: true
at line38
React Native Version
0.74.2
Affected Platforms
Runtime - iOS
Areas
Bridgeless - The New Initialization Flow
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/lodev09/react-native-true-sheet/tree/main/example
Screenshots and Videos
The text was updated successfully, but these errors were encountered: