Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Native 0.75 compatibility #2576

Closed
oblador opened this issue Aug 15, 2024 · 16 comments · Fixed by #2586
Closed

React Native 0.75 compatibility #2576

oblador opened this issue Aug 15, 2024 · 16 comments · Fixed by #2586
Assignees
Labels
bug Something isn't working released

Comments

@oblador
Copy link

oblador commented Aug 15, 2024

Description

When using the latest version of React Native (0.75, released yesterday), compiling with this library for Android fails with:

node_modules/@shopify/react-native-skia/android/src/reactnative74/java/com/shopify/reactnative/skia/ReactNativeCompatible.java:12: error: cannot find symbol
        return context.getRuntimeExecutor();
                      ^
  symbol:   method getRuntimeExecutor()
  location: variable context of type ReactContext

If one fixes this Java error, 4 other C++ errors appear such as:

error: static_cast from '__compressed_pair<allocator<BridgelessJSCallInvoker>, BridgelessJSCallInvoker> *' to '_Base1 *' (aka '__compressed_pair_elem<std::allocator<(anonymous namespace)::BridgelessJSCallInvoker>, 0> *'), which are not related by inheritance, is not allowed

Didn't dig that deeply into it, but seems to be related to recent bridgeless changes, even though this happens in "bridgefull" mode as well.

Version

1.3.10

Steps to reproduce

  1. Create a new project with RN 0.75
  2. Add RN Skia dependency
  3. Build Android

Snack, code example, screenshot, or link to a repository

N/A

@oblador oblador added the bug Something isn't working label Aug 15, 2024
@DanilKasianenko
Copy link

DanilKasianenko commented Aug 16, 2024

+

@sakarzac000
Copy link

+1

4 similar comments
@l2hyunwoo
Copy link

+1

@graphtobinary
Copy link

+1

@codeAbinash
Copy link

+1

@longphung
Copy link

+1

@mbpictures
Copy link

As a workaround, I managed to fix the issue by adding this patch:

@shopify+react-native-skia+1.3.10.patch

into the patches folder and apply it by using patch-package

@sakarzac000
Copy link

As a workaround, I managed to fix the issue by adding this patch:

@shopify+react-native-skia+1.3.10.patch

into the patches folder and apply it by using patch-package

Great patch, works for me. What functionality is being lost in this workaround, is it defaulting something back to bridgefull while we wait for a fix?

@SayeedAfridi
Copy link

+1

@oblador
Copy link
Author

oblador commented Aug 20, 2024

Peeps, please refrain from spamming with +1. Instead upvote the original post to show it's affecting you too, or click Subscribe to get notified by updates.

@uciadonis
Copy link

+1

@wcandillon
Copy link
Contributor

Haha all good @oblador 😊🙏 This is my first +1 spam thread so I'm definitely here for it ❤️

Looking into the Android build now 😇

@wcandillon
Copy link
Contributor

@sakarzac000 you patch is correct 👍 I just need to add a flag for version below 0.75

Copy link
Contributor

🎉 This issue has been resolved in version 1.3.11 🎉

The release is available on:

Your semantic-release bot 📦🚀

@sakarzac000
Copy link

@sakarzac000 you patch is correct 👍 I just need to add a flag for version below 0.75

This was all @mbpictures work!

@wcandillon
Copy link
Contributor

oups 😅 gg @mbpictures

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging a pull request may close this issue.