React-native-reanimated: Invariant violation native module cannot be null

Created on 13 Mar 2020  路  8Comments  路  Source: software-mansion/react-native-reanimated

Hi, I have already double checked if the package was correctly linked and I still can't get it to work.
I am using
React: 16.12.0
React-Native: 0.61.5

Any ideas?

馃洜build-or-config-issue

Most helpful comment

Same issue

All 8 comments

Same issue

Same issue

Hi @Harsh2402, @alexandreaugus, @miguel550

please provide a link to the repository with smallest possible example which reproduces this error. Otherwise, we can't really help you.

This happens for me when running tests. The native code has to be mocked up in a jest.setup.js, since jest is just testing the javascript/react. If I figure it out I'll post it here.

We have mocks ready for that, check out mock.js

@jakub-gonet Great, that worked for me. I just needed to add the jest.mock() call mentioned there into my jest.setup.js file

Closing due to no response.

image

Can't launch the Example project.
Did everything according to the getting started guide.

Was this page helpful?
0 / 5 - 0 ratings