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

Update documentation for react-native-reanimated and bump version in Example #73

Open
alexpchin opened this issue Jan 30, 2021 · 9 comments
Labels
enhancement New feature or request

Comments

@alexpchin
Copy link
Contributor

react-native-reanimated v2 has quite a bit more set-up. It's not immediately clear that when installing the library, you have to be using v2 of the library.

Also, things like Direct Debugging are things that people who install v2 may not be expecting.

Also, we should bump the version in the example to 2.0.0-rc.2

@alexpchin alexpchin added the enhancement New feature or request label Jan 30, 2021
@PedroBern
Copy link
Owner

PedroBern commented Jan 30, 2021

I'm facing this issue when trying to bump the version software-mansion/react-native-reanimated#1640

The workaround is to comment out the line responsible for the issue inside the node_modules. But wouldn't be able to deploy the preview from github actions. I would need to cancel all the actions and manually deploy, both for the main and for the PRs preview, which is really boring 🐤

@alexpchin
Copy link
Contributor Author

@PedroBern I had to --reset-cache to make this go away I think?

@PedroBern
Copy link
Owner

I tried all kind of reset cache, including the metro bundler, but I still have the issue.

@PedroBern
Copy link
Owner

PedroBern commented Feb 1, 2021

here is the explanation

@andreialecu
Copy link
Collaborator

andreialecu commented Feb 1, 2021

I'm facing this issue when trying to bump the version software-mansion/react-native-reanimated#1640

While trying to test #58 in an actual app I've also ran into this. None of the reanimated2 rc versions worked (0, 1 or 2).

What did you do for a workaround @PedroBern? Commenting out the offending line is not something I can do in this project.

@PedroBern
Copy link
Owner

@andreialecu I did nothing, kept the rc.0. I faced this issue only with rc.1 and rc.2. Are you using expo? here are some useful commands to clean all the cache I tried (just updated to yarn) without success.

But you are not supposed to have this issue if not using expo.

@andreialecu
Copy link
Collaborator

I'm not using expo, on rc.0 I'm getting a different error instead though:

ReferenceError: Can't find variable: _globalSetter

Which seems to be reported here: software-mansion/react-native-reanimated#1587

I cleared the caches using --reset-cache, without success.

@andreialecu
Copy link
Collaborator

Oh, nevermind. After adding the babel plugin it works now (on rc.0, didn't try the others):

  plugins: ['react-native-reanimated/plugin'],

@Draykee
Copy link

Draykee commented Apr 20, 2021

I had this issue too and right now I'm pretty confused on what I should to.

You will be unable to use Remote JS Debugging if you use the new APIs from Reanimated 2
Expo (https://docs.expo.io/versions/latest/sdk/reanimated/)

It should be mentioned somewhere

UPDATE: SDK41 contains support for Reanimated 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants