Open MaxToyberman opened 1 week ago
@MaxToyberman thanks for reporting this bug. A couple of questions:
On Android, I have started migrating to Fabric (work in progress), and it compiles and runs successfully.
react-native-charts-wrapper
also working for Android? Or are you referring to your app in general?Hi @cortinico,
On Android, the library works fine when the newArch
flag is disabled, but when it's enabled, no views are rendered. (same for iOS)
I noticed there are open issues regarding the migration to the new architecture, but it doesn't seem like it's moving forward. That's why I wanted to contribute. However, the iOS code is written entirely in Swift, which seems to pose a problem when migrating to Fabric. Is that correct?
I’ve included a stack trace in the issue. The app launches, but no views are visible.
Maybe there is an option to debug the interop layer ?
- On Android, the library works fine when the
newArch
flag is disabled, but when it's enabled, no views are rendered. (same for iOS)
Ok so it's broken for both Android & iOS. This was not clear in your original issue.
However, the iOS code is written entirely in Swift, which seems to pose a problem when migrating to Fabric. Is that correct?
@cipolleschi can provide more insights on this
Maybe there is an option to debug the interop layer ?
We're aware of scenarios where the Interop Layer doesn't work. For example if your view managers provide a custom shadow node implementation. That doesn't seem to be the case here (at least for Android) and would need a bit more of investigation.
Hi @cortinico sorry for the confustion.
The issue is only with iOS, will edit my original issue now
Hi @cortinico,
It seems I've managed to fix the issue, but I'd appreciate any insights you might have on the root cause. You can check out the change here:
react-native-charts-wrapper PR #1004
I noticed that when adjusting the frame size in the new architecture, the view becomes visible again.
another issue that i see is that the viewRegistry is empty, i found this ticket
It seems I've managed to fix the issue, but I'd appreciate any insights you might have on the root cause. You can check out the change here:
@cipolleschi can help here as this is iOS specific
Hi @cipolleschi I have an issue with addUIBlock which looks like it was fixed here
Description
I am using react-native-charts-wrapper, and after enabling the new architecture (Fabric) on iOS, the charts no longer render. On Android, I have started migrating to Fabric (work in progress), and it compiles and runs successfully.
However, on iOS, the library and native code are written in Swift. As I understand, Fabric currently has limited compatibility with Swift, which may be causing the issue.
Steps to reproduce
yarn install
cd ios && bundle install
bundle exec pod install
- Graph is visiblebundle install && RCT_NEW_ARCH_ENABLED=1 arch -x86_64 bundle exec pod install
- Graph is invisibleReact Native Version
0.75.4
Affected Platforms
Runtime - iOS
Areas
Fabric - The New Renderer
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/MaxToyberman/charts-wrapper-repro
Screenshots and Videos
No response