calintamas / react-native-toast-message

Animated toast message component for React Native
MIT License
1.73k stars 265 forks source link

When the native permission request modal appears, the toast notification also shows up on the screen #545

Closed ZohaibNaseer786 closed 2 months ago

ZohaibNaseer786 commented 6 months ago

Bug Description Issue: Whenever a native permission is requested, the toast notification appears at the top of the screen even if it was not triggered previously.

Steps to Reproduce:

  1. Have a navigation container in App.js with the v2.1.6 toast positioned at the bottom of the container.
  2. Trigger any native Android or iOS permission request.

Expected Behavior: The toast notification should not appear unless explicitly triggered by the application.

Environment:

react-native-toast-message Version: v2.1.6 react-native Version: v0.72.5

Nader-CS commented 3 months ago

yes , this issue exist

ZohaibNaseer786 commented 3 months ago

What you suggest to fix this issue?

On Thu, Aug 22, 2024 at 3:40 PM Martin Kuvandzhiev @.***> wrote:

@.**** commented on this pull request.

In src/components/AnimatedContainer.tsx https://github.com/calintamas/react-native-toast-message/pull/545#discussion_r1726813483 :

@@ -133,6 +134,7 @@ export function AnimatedContainer({ pointerEvents={isVisible ? 'box-none' : 'none'} {...panResponder.panHandlers}> {children}

  • </Animated.View>
  • </Animated.View> :
  • null

What are the options for fixing that issue. It look pretty bad for the users.

— Reply to this email directly, view it on GitHub https://github.com/calintamas/react-native-toast-message/pull/545#discussion_r1726813483, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOM7J5ZRVEEU5N3ULRHZ45DZSW53RAVCNFSM6AAAAABIC534D2VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDENJUGE3DIMJWHA . You are receiving this because you authored the thread.Message ID: @.*** com>

martin-key commented 3 months ago

Linking that issue as related and from quite a while ago - https://github.com/calintamas/react-native-toast-message/issues/428

calintamas commented 2 months ago

Added more details here https://github.com/calintamas/react-native-toast-message/issues/428#issuecomment-2361052113