Closed ifier closed 3 years ago
Having the exact same bug in my code as well, and I am using the createMaterialTopTabNavigator from react-navigation 5.
This is a regression which occurs specifically specifically in 2.0.0-alpha.9
. I was able to use a MaterialTopTabNavigator in 2.0.0-alpha.8
and can confirm that upgrading to alpha.9
causes error.
Thank you @ksitko I have downgraded to 2.0.0-alpha.8
and I can confirm that it also works.
Tried to downgrade to alpha.8
yesterday but got the same error :(
I'm not using createMaterialTopTabNavigator
, just react-native-tab-view
. Will try today again.
After upgrading react-native-reanimated
to alpha
I'm doing npm start -- --reset-cache
.
@jakub-gonet Thank you!
@jakub-gonet
I've reinstalled node_modules
and pods
and still getting this error (at my code example repo). What I need to do to get this fix?
After applying the #1446 patch? It should work OOTB, maybe you have to run metro with --reset-cache
flag (yarn start --reset-cache
)
@jakub-gonet
I've started. npm start -- --reset-cache
, but still this error happens :(
My reinstall script:
"reinstall": "rm -rf node_modules/ && rm -rf ./ios/Pods/ && npm i && cd ./ios && pod install && cd .."
Still the same code, without yours fix :(
@jakub-gonet
This repo has actions and I can see that last build npm package
was 6 hours ago... (#71)
And your fix was merged 1 hour ago. Is it possible that your fix is not available yet?
I can specify at package.json
and then I will get your changes:
...
"react-native-reanimated": "git+https://github.com/software-mansion/react-native-reanimated.git",
...
I hope it will be available at npm packages
soon as well :)
And your fix was merged 1 hour ago. Is it possible that your fix is not available yet? Yeah, it's built every 24 hours.
We will try to publish alpha9.1 shortly, I already forwarded this issue to the Reanimated 2 team. Stay tuned 😄
alpha.9.1 with that fix is out.
Description
I have used react-native-tab-view with reanimated v1 previously and today I've updated reanimated to v2. After that (update) I got this error. When I downgraded reanimated from v2 to v1 - error gone. Then I've updated reanimated again and tried to disconnect some screens/components and etc. Just trying to figure out where the error is and which module causing it. After disconnecting components where Tabs lives - everything become fine. At my code sample, if I will return null;, error will gone.
Screenshots
Steps To Reproduce
I've created repo where you can reproduce https://github.com/ifier/reanimated-tab-view-bug
Expected behavior
No errors
Actual behavior
Weird error :)
Snack or minimal code example
https://github.com/ifier/reanimated-tab-view-bug
What have you tried
Tried to search through issues and etc but got nothing. Tried to read documentation how to install
reanimated v2
(I didn't install it like v1 and used it previously, just like dependency for your library) andreact-native-tab-view
Tried to uninstallnode_modules
completely and install them again andpod install
. Thennpm start -- --reset-cache
.Package versions