React-native-reanimated: Example -> TypeError: (0, _core.withNavigation) is not a function, liquid swipe example doesnt animate

Created on 30 Jul 2020  路  13Comments  路  Source: software-mansion/react-native-reanimated

Installing the example app I'm met with the following error:

[Thu Jul 30 2020 17:28:46.962]  ERROR    TypeError: (0, _core.withNavigation) is not a function. (In '(0, 
_core.withNavigation)(LinkWithNavigation)', '(0, _core.withNavigation)' is undefined)

Also, removing the react-navigation part of the example the liquid swipe example is purely static and doesn't animate, is this correct?

馃彔 Reanimated2 馃悶 Bug

All 13 comments

Liquid swipe works only on iOS. What platform did you use?

Sorry, should have mentioned, this is cloning, npm installing/pod installing and running on iOS. I'll try just taking the markup over to the playground app.

Same issue moving to the playground app, can't interact with it.

Replication repo
https://github.com/kyle-ssg/reanimated-liquid-swipe
image

Sorry, no idea how or why but I've run it a couple days later and it works! So strange, before I couldn't interact with it on two separate projects!

Hey,
I get the same issue myself.
The app opens with a blank screen and the packager throws:

TypeError: (0, _core.withNavigation) is not a function. (In '(0, _core.withNavigation)(LinkWithNavigation)', '(0, _core.withNavigation)' is undefined)

Any idea on how to fix it?

I followed the instructions here:
https://github.com/software-mansion/react-native-reanimated/tree/master/Example#run-the-example

Hi. Seems like it's related to missing package-lock.json in the project. Try to use yarn instead of npm.

Using Yarn worked. Thanks

hey @karol-bisztyga, here is another confirmation of the problem with npm because of missing package-lock :)

I am using yarn and facing the same issue

@Rawan-Eltobgy, please provide some repro repository.

Make sure you haven't overrided yarn.lock provided by the repo.

I'm having the same problem. Can someone refer me to the exact solution?

@khokonm

Using yarn v1.22.10 works for me

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nextriot picture nextriot  路  3Comments

jwhscholten picture jwhscholten  路  4Comments

wasim-abuzaher picture wasim-abuzaher  路  3Comments

robertgonzales picture robertgonzales  路  3Comments

bdrobinson picture bdrobinson  路  3Comments