fix: compatibility with react native 0.76#359
Conversation
Sample app builds 📱Below you will find the list of the latest versions of the sample apps. It's recommended to always download the latest builds of the sample apps to accurately test the pull request.
|
4f00692 to
c2a94cc
Compare
c2a94cc to
5118d6f
Compare
Shahroz16
left a comment
There was a problem hiding this comment.
changes looks okay, i am little unsure about what the issue was with the support for 0.76. Does 0.76 require these objc anatotions now that we added because I believe with Turbo and everything they are probably moving away.
If #352 solves the issue with compatibility, do we still need to add additional anotations specifically on methods?
|
@Shahroz16 The goal of this ticket was not to specifically include Turbo Modules but rather to ensure that our SDK compiles and runs with latest RN version (0.76) to unblock customers from using it. The PR you mentioned does address the issue, but the additional changes were added to ensure code consistency and to avoid any potential similar issues in the future. Turbo Modules weren't expected to be covered under this ticket and may be addressed in a separate ticket/project, as implementing them might require more effort and a broader review of our SDK before going live with it. |
I agree, the scope of this ticket didn't include Turbo, and that is not where my question is at either. Let me rephrase. The obj-c annotation, that you added, they were in the code before too. But they were removed, because React native doesn't fully require explicit obj-c annotation as it moving towards "Turbo and bridgeless approach". So these annotations were removed in the data pipeline release. The fix for the support for So, I would suggest probably, revert those, and keep the formating because we would need a |
|
Thanks for sharing the details @Shahroz16. I wasn't fully aware of these changes in our SDK or the updates in React Native. I'm completely fine reverting the annotations, but I have a few questions I think we should consider before proceeding:
Let me know what you think so I can update PR accordingly! |
I don't think that is the case. This flexibility has been there before, too. What you are referring to is a The issue we face right now is what format Turbo modules expect the bridges to be in. This is why, regardless of whether we changed the |
|
@Shahroz16 Thanks for clarifying. I'll then go ahead and revert all the annotation changes. |
## [4.1.1](4.1.0...4.1.1) (2024-11-20) ### Bug Fixes * compatibility with react native 0.76 ([#359](#359)) ([6fcdd91](6fcdd91))
fixes: MBL-642
Changes
objcannotations to all Swift methods used by Objective-C classesTested On