diff --git a/bun-patches/react-native-ios-utilities@5.2.0.patch b/bun-patches/react-native-ios-utilities@5.2.0.patch new file mode 100644 index 00000000..4659493b --- /dev/null +++ b/bun-patches/react-native-ios-utilities@5.2.0.patch @@ -0,0 +1,28 @@ +diff --git a/ios/Sources/Extensions+Helpers/RCTView+Helpers.swift b/ios/Sources/Extensions+Helpers/RCTView+Helpers.swift +index 09be306d5aa39337c5114c2ad6ba7513218e0751..24ff8ee2c36fef8632a7e012514fd04db9bf89fd 100644 +--- a/ios/Sources/Extensions+Helpers/RCTView+Helpers.swift ++++ b/ios/Sources/Extensions+Helpers/RCTView+Helpers.swift +@@ -25,15 +25,14 @@ public extension RCTView { + return rootView.recursivelyFindSubview(whereType: targetType); + }; + +- var closestParentReactContentView: RCTRootContentView? { +- let targetType = RCTRootContentView.self; +- +- if let match = self.recursivelyFindParentView(whereType: targetType) { +- return match; +- }; +- +- guard let rootView = self.rootViewForCurrentWindow else { return nil }; +- return rootView.recursivelyFindSubview(whereType: targetType); ++ // PATCH (streamyfin): RCTRootContentView is a legacy paper class that the prebuilt ++ // new-architecture React (RN 0.85) does not export, so any reference to it fails to ++ // link (Undefined symbols: _OBJC_CLASS_$_RCTRootContentView). The app runs the new ++ // architecture, where this content-view lookup is unused; short-circuit to nil. ++ // Return type widened to RCTView? so the caller's `.reactTouchHandlers` (an RCTView ++ // extension) still resolves. ++ var closestParentReactContentView: RCTView? { ++ return nil; + }; + + var reactTouchHandlers: [RCTTouchHandler]? { diff --git a/bun.lock b/bun.lock index b9546e2a..cad38e06 100644 --- a/bun.lock +++ b/bun.lock @@ -115,6 +115,7 @@ }, }, "patchedDependencies": { + "react-native-ios-utilities@5.2.0": "bun-patches/react-native-ios-utilities@5.2.0.patch", "react-native-udp@4.1.7": "bun-patches/react-native-udp@4.1.7.patch", "react-native-bottom-tabs@1.2.0": "bun-patches/react-native-bottom-tabs@1.2.0.patch", }, diff --git a/package.json b/package.json index ca7b49a0..bef7d600 100644 --- a/package.json +++ b/package.json @@ -165,6 +165,7 @@ ], "patchedDependencies": { "react-native-udp@4.1.7": "bun-patches/react-native-udp@4.1.7.patch", - "react-native-bottom-tabs@1.2.0": "bun-patches/react-native-bottom-tabs@1.2.0.patch" + "react-native-bottom-tabs@1.2.0": "bun-patches/react-native-bottom-tabs@1.2.0.patch", + "react-native-ios-utilities@5.2.0": "bun-patches/react-native-ios-utilities@5.2.0.patch" } }