0.76: undefined function
when using a swift App Delegate (iOS)
#48635
Labels
undefined function
when using a swift App Delegate (iOS)
#48635
Description
Since RN 0.76 many packages that use iOS native code started to break at runtime with the error
<function> is not a function (it is undefined). For example using [this localization package ](https://github.com/zoontek/react-native-localize) I get
_NativeRNLocalize.default.getTimeZone is not a function (it is undefined)`.I tried on a sample project and everything seems working fine if I use the objective c AppDelegate, but break when I use a Swift AppDelegate.
Everything was working fine up to 0.75.x, even if the swift AppDelegate.
Am I missing something during the swift setup with the new architecture?
Steps to reproduce
React Native Version
0.76.6
Affected Platforms
Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/fbp93/RN-0.76
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: