react-native-toast-message 2.1.9 → 2.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -9,6 +9,12 @@ Headers are one of:
9
9
 
10
10
  - `Added`, `Changed`, `Removed`, `Fixed` or `Breaking`.
11
11
 
12
+ ## [2.1.10]
13
+
14
+ ### Fixed
15
+
16
+ - Toast showing again when dragging after it was dismissed [#488](https://github.com/calintamas/react-native-toast-message/pull/488)
17
+
12
18
  ## [2.1.9]
13
19
 
14
20
  ### Added
@@ -75,7 +75,7 @@ export function AnimatedContainer({ children, isVisible, position, topOffset, bo
75
75
  return (<Animated.View testID={getTestId('AnimatedContainer')} onLayout={computeViewDimensions} style={[styles.base, styles[position], animationStyles]}
76
76
  // This container View is never the target of touch events but its subviews can be.
77
77
  // By doing this, tapping buttons behind the Toast is allowed
78
- pointerEvents='box-none' {...panResponder.panHandlers}>
78
+ pointerEvents={isVisible ? 'box-none' : 'none'} {...panResponder.panHandlers}>
79
79
  {children}
80
80
  </Animated.View>);
81
81
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-toast-message",
3
- "version": "2.1.9",
3
+ "version": "2.1.10",
4
4
  "description": "Toast message component for React Native",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",