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

truncated toast on react native 76.1 with position bottom

Open alainib opened this issue 1 year ago • 13 comments

Describe the bug i use react-native-toast-message since 2 years, it's work good thanks for this amazing package.

we upgraded to RN v0.76.1 and since we get truncated toast display on android only

Code sample

 Toast.show({
      type: 'success',
      text1: 'Hello',
      text2: 'This is some something 👋',
      position: 'bottom',
    });

Screenshots

Screenshot_1730901547

with position top it work as usullay

Screenshot_1730901620

Environment (please complete the following information):

  • OS: android
  • react-native-toast-message version: 2.2.1
  • react-native version v0.76.1

alainib avatar Nov 06 '24 14:11 alainib

same here

downgrading to 2.2.0 solves the issue

looking at the changelog between 2.2.0 and 2.2.1 my feeling is either it has something to do with how useNativeDriver is set in src/hooks/useSlideAnimation.ts OR there might be some funky stuff happening with Animated library imported from react-native in v0.76.1

MasterSigmar avatar Nov 07 '24 21:11 MasterSigmar

same here

downgrading to 2.2.0 solves the issue

looking at the changelog between 2.2.0 and 2.2.1 my feeling is either it has something to do with how useNativeDriver is set in src/hooks/useSlideAnimation.ts OR there might be some funky stuff happening with Reanimated library imported from react-native in v0.76.1

are you sure Reanimated is imported by react 76,1 ?

alainib avatar Nov 12 '24 08:11 alainib

same here downgrading to 2.2.0 solves the issue looking at the changelog between 2.2.0 and 2.2.1 my feeling is either it has something to do with how useNativeDriver is set in src/hooks/useSlideAnimation.ts OR there might be some funky stuff happening with Reanimated library imported from react-native in v0.76.1

are you sure Reanimated is imported by react 76,1 ?

My bad I meant Animated at the imports at the top of the src/hooks/useSlideAnimation.ts file. Will edit my original reply.

Furthermore, I personally have had trouble using this library on Android. Especially with LayoutAnimation(s). Setting the experimental flag and stuff did not help and I never got to make it work whatsoever lol

MasterSigmar avatar Nov 12 '24 19:11 MasterSigmar

same here downgrading to 2.2.0 solves the issue looking at the changelog between 2.2.0 and 2.2.1 my feeling is either it has something to do with how useNativeDriver is set in src/hooks/useSlideAnimation.ts OR there might be some funky stuff happening with Reanimated library imported from react-native in v0.76.1

are you sure Reanimated is imported by react 76,1 ?

My bad I meant Animated at the imports at the top of the src/hooks/useSlideAnimation.ts file. Will edit my original reply.

Furthermore, I personally have had trouble using this library on Android. Especially with LayoutAnimation(s). Setting the experimental flag and stuff did not help and I never got to make it work whatsoever lol

hello

i dont think we have LayoutAnimation in our code at all. it was working nice on android & ios before rn 0.76 i hope owner will publish new version or patch

alainib avatar Nov 13 '24 08:11 alainib

Facing the same issue

Soumyaranjansingh-rn avatar Nov 22 '24 12:11 Soumyaranjansingh-rn

+1

theprantadutta avatar Nov 24 '24 05:11 theprantadutta

Same issue. The current reaction react-native-toast-message does not work properly in the react-native 0.76 version. In the 0.74, there was no issue.

dkahdwk avatar Nov 25 '24 07:11 dkahdwk

+1

shuo-hiwintech avatar Nov 25 '24 13:11 shuo-hiwintech

useSlideAnimation.js in node module..

const useNativeDriver = Platform.select({ ios: true,

  • default: false
  • default: false,
  • android: true, });

working for me in android

Soumyaranjansingh-rn avatar Nov 27 '24 07:11 Soumyaranjansingh-rn

Hello,

I applied the workaround by modifying useSlideAnimation.js to set android: true for useNativeDriver, and it resolved the issue temporarily. However, it would be great to have an official fix for this problem in a future release.

Thank you in advance for your efforts!

VirtuozTM avatar Dec 01 '24 19:12 VirtuozTM

Same issues here.

t41n4 avatar Feb 04 '25 06:02 t41n4

+1

simran-cropsy avatar Mar 25 '25 22:03 simran-cropsy

@alainib @MasterSigmar @dkahdwk @t41n4 This issue is fixed in latest version 2.3.0, update it to latest version to avoid this problem, thanks everyone.

theprantadutta avatar Apr 20 '25 14:04 theprantadutta