react-native-toast-message icon indicating copy to clipboard operation
react-native-toast-message copied to clipboard

Toast no longer visible, update to Expo 54 cause animations to stop working

Open Ken-vdE opened this issue 1 year ago • 8 comments

Describe the bug I've just updated to Expo 54 and now the animations (e.g. Animated.spring() in useSlideAnimation.js) no longer works and thus the toast is not 'slid in' and not visible. That pretty much breaks the entire functionality...

Environment:

  • OS: iOS & Android
  • react-native-toast-message version: 2.3.3
  • react-native version: 0.81.4

Additional context The animated values are calculated (underwater) but are not reflected in the app (I think because components are not redrawn). I think (not sure) it's caused by the move to reanimation v4, which basically requires the use of withSpring() from reanimation. Or maybe because of the move to the new architecture ("newArchEnabled": true), though I haven't been able to successfully build the app with "newArchEnabled": false so I can't confirm.

Possibly related to https://github.com/calintamas/react-native-toast-message/issues/581

Ken-vdE avatar Sep 18 '25 08:09 Ken-vdE

I can also confirm that the exact same behaviour has began in my project immediately after upgrade to Expo version 54.

Trobin365 avatar Sep 22 '25 16:09 Trobin365

I've been testing right now and it's working for me.

Environment tested:

  • Expo Go;
  • Android Build.

Dependencies:

{
  "expo": "~54.0.10",
  "react-native": "0.81.4",
  "react-native-toast-message": "^2.2.1"
}

NandoFilter avatar Sep 28 '25 19:09 NandoFilter

I've been testing right now and it's working for me.

Environment tested:

  • Expo Go;
  • Android Build.

Dependencies:

{ "expo": "~54.0.10", "react-native": "0.81.4", "react-native-toast-message": "^2.2.1" }

Not working

jatin263 avatar Oct 12 '25 18:10 jatin263

I've been testing right now and it's working for me.

Environment tested:

  • Expo Go;
  • Android Build.

Dependencies:

{ "expo": "~54.0.10", "react-native": "0.81.4", "react-native-toast-message": "^2.2.1" }

Not working

Hi! How is your root _layout.tsx or App.tsx?

NandoFilter avatar Oct 12 '25 18:10 NandoFilter

Any update on this ??

0xSuryax avatar Nov 08 '25 07:11 0xSuryax

Package.json "expo": "^54.0.23", "react-native": "0.81.5", "react-native-toast-message": "^2.3.3",

Added to root _layout and I am receiving the same issue. When i activate the toast i get no animation and it takes forever to render in and it doesn't render back out.

EJ132 avatar Nov 10 '25 01:11 EJ132

I've created a Fork of this project and moved the react-native animation stuff to reanimated v4 (compatible with expo 54). I've just prompted the entire thing because I just needed it to work asap. I wasn't able to fix (or run for that matter) the tests but the toast works in my application. These are the changes: https://github.com/Ken-vdE/react-native-toast-message/pull/1/files

You could install by cloning the repo (not in a subdirectory of another npm project) using -b reanimated (or checking out branch 'reanimated'), running yarn install && yarn build and then installing it in your react native app using pnpm add file:/path/to/react-native-toast-message.

NOTE: I am not going to maintain it for the general public for now. I will publish bugfixes if I encounter them in my own app.

Ken-vdE avatar Nov 10 '25 15:11 Ken-vdE

same problem

emanueljcc avatar Feb 08 '26 16:02 emanueljcc