Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

truncated toast on react native 76.1 with position bottom #558

Open
alainib opened this issue Nov 6, 2024 · 10 comments
Open

truncated toast on react native 76.1 with position bottom #558

alainib opened this issue Nov 6, 2024 · 10 comments

Comments

@alainib
Copy link

alainib commented Nov 6, 2024

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
@MasterSigmar
Copy link

MasterSigmar commented Nov 7, 2024

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

@alainib
Copy link
Author

alainib commented Nov 12, 2024

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 ?

@MasterSigmar
Copy link

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

@alainib
Copy link
Author

alainib commented Nov 13, 2024

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

@Soumyaranjansingh-rn
Copy link

Facing the same issue

@theprantadutta
Copy link

+1

@dkahdwk
Copy link

dkahdwk commented Nov 25, 2024

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.

@shuo-hiwintech
Copy link

+1

@Soumyaranjansingh-rn
Copy link

useSlideAnimation.js in node module..

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

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

working for me in android

@VirtuozTM
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants