Closed yepMad closed 1 year ago
Hey! 👋
The issue doesn't seem to contain a minimal reproduction.
Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?
Hey @yepMad, thanks for reporting the issue. Can you please run yarn start --reset-cache
and see if it helps?
Hey @yepMad, thanks for reporting the issue. Can you please run
yarn start --reset-cache
and see if it helps?
Thanks for the quick response! Unfortunately it didn't solve it. Do you have another opinion about it?
It will be difficult without a repro, 3.0.0-rc.10 works fine for us.
It will be difficult without a repro, 3.0.0-rc.10 works fine for us.
I'll try to get some things done on my end and send a repro as soon as possible. Thanks!
@tomekzaw I switched from hermes to jsc and got a more readable error: TypeError: undefined is not an object (evaluating '_reactNativeReanimated.Transitioning.View')
.
I understand the source of the error. In a component I used import { Transitioning, Transition, TransitioningView } from 'react-native-reanimated';
at one point in my app - and of course <Transitioning.View>
. Removing this line/implementation the error solved.
Keeping the issue open because I don't know if this is expected or not.
Does this help anything?
Thanks, it makes more sense now. Transitioning
, Transition
and TransitioningView
come from Reanimated 1 API. Reanimated 3 removes all Reanimated 1 API, see Announcing Reanimated 3 blog post. So this is unfortunately expected.
@tomekzaw Thanks! I know this is not the purpose of the issue, but if you could enlighten me: how to replace Transitioning with the new API? I mean, I used Transitioning to expand/collapse a View when its content changed. I can't understand how I can do this in the current API without needing to know the size of the next View.
If it's not make sense, please let me try to explain again.
@yepMad Not sure if I understand your use-case correctly but please check if Layout Transitions sound like a solution for you: https://docs.swmansion.com/react-native-reanimated/docs/api/LayoutAnimations/layoutTransitions Basically, it allows you to animate the component each the layout (i.e. position or size) of the component changes.
I believe that's it! Thank you for that. I'll be closing the issue as it's not a problem.
Description
I just did "
yarn upgrade react-native-reanimated
" and I'm facing the below error. How can I resolve this?My
package.json
:Steps to reproduce
Snack or a link to a repository
I can't provide now. I'm sorry.
Reanimated version
3.0.0-rc.10
React Native version
0.70.5
Platforms
Android
JavaScript runtime
Hermes
Workflow
Expo bare workflow
Architecture
Paper (Old Architecture)
Build type
None
Device
Real device
Device model
Samsung A22
Acknowledgements
Yes