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

Conflict between Realm and Reanimated 2 #3878

Closed
bnobre opened this issue Jul 29, 2021 · 3 comments
Closed

Conflict between Realm and Reanimated 2 #3878

bnobre opened this issue Jul 29, 2021 · 3 comments

Comments

@bnobre
Copy link

bnobre commented Jul 29, 2021

Goals

I'm trying to install Realm along with Reanimated 2 without preventing my app from loading.

Expected Results

Install Realm together with Reanimated 2 without preventing my app from loading.

Actual Results

I am using React Navigation with Drawer. It keeps showing the alert "If you want to use Reanimated 2 then go through our installation steps https://docs.swmansion.com/react-native-reanimated/docs/installation" and that's why I need to install Reanimated 2.

The problem is that I use Realm SDK to connect my app to MongoDB Atlas and when I configure Reanimated 2 according to the steps on the site the app just doesn't load and doesn't show any errors in Metro Bundler.

If I remove Realm the program opens normal and without the Reanimated 2 alert. If I revert the configuration of the Reanimated 2 the program opens, but the alert persists "If you want to use Reanimated 2 then go through our installation steps https://docs.swmansion.com/react-native-reanimated/docs/installation".

Another thing, when Realm is installed I always get the following alert when running react-native run-android: “Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.”.

Steps to Reproduce

1 - Start a new project: react-native init testApp
2 - Install the Realm with the command: yarn add realm
3 - Install the Reanimated 2 with the following steps: https://docs.swmansion.com/react-native-reanimated/docs/installation]
4 - Start the app: react-native run-android

Version of Realm and Tooling

  • Realm JS SDK Version: 10.6.1
  • Node: 15.10.0 x64
  • React Native: 0.64.2
  • Client OS & Version: Windows 10 Home Single Language x64
  • Which debugger for React Native: None
@bnobre bnobre changed the title Conflict between Realm MongoDB and Reanimated 2 Conflict between Realm and Reanimated 2 Jul 29, 2021
@KyoungHwanLee
Copy link

KyoungHwanLee commented Jul 29, 2021

I think it's because you turned hermes on.
Reanimated2 supports JSC. Just try turn off hermes

@bnobre I tested it just now and got some bugs. In my case, app launched successfully but couldn't create any object. Anyway, it seems to be a problem 😰

@bnobre
Copy link
Author

bnobre commented Jul 29, 2021

I think it's because you turned hermes on.
Reanimated2 supports JSC. Just try turn off hermes

Hi @KyoungHwanLee . I turned off hermes, but the problem persists.

@takameyer
Copy link
Contributor

Closing. Please move discussion to #3837

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants