react-native-toast-message 2.1.0 → 2.1.1
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 +7 -1
- package/README.md +6 -0
- package/lib/src/components/AnimatedContainer.js +4 -1
- package/package.json +1 -1
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.1]
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- Tapping a View / Button behind the Toast is not possible ([b9d191e](https://github.com/calintamas/react-native-toast-message/commit/b9d191e1dcc4d331fd5159ca9aabd54d7d0ecb97)) (fixes [#282](https://github.com/calintamas/react-native-toast-message/issues/282))
|
|
17
|
+
|
|
12
18
|
## [2.1.0]
|
|
13
19
|
|
|
14
20
|
### Fixed
|
|
@@ -16,7 +22,7 @@ Headers are one of:
|
|
|
16
22
|
- After a Toast is shown within a Modal, the main instance outside of Modal doesn't work anymore ([#293](https://github.com/calintamas/react-native-toast-message/pull/293))
|
|
17
23
|
- A previously set timer is not cleared when `autoHide` changes from `true` to `false`. This can make a newly shown Toast auto hide (even if it was shown with `autoHide: false`) ([#294](https://github.com/calintamas/react-native-toast-message/pull/294))
|
|
18
24
|
|
|
19
|
-
Big thanks go to [jstheoriginal](https://github.com/jstheoriginal) for all the work on fixing two issues above 🙌.
|
|
25
|
+
Big thanks go to [jstheoriginal](https://github.com/jstheoriginal) for all the work on fixing the two issues above 🙌.
|
|
20
26
|
|
|
21
27
|
- Flexbox not working for setting Toast width or alignment ([3400f00](https://github.com/calintamas/react-native-toast-message/commit/3400f0074116f5acb37ca2eb696ea50b0c669ddc))
|
|
22
28
|
|
package/README.md
CHANGED
|
@@ -33,3 +33,9 @@ Animated toast message component for React Native.
|
|
|
33
33
|
## License
|
|
34
34
|
|
|
35
35
|
MIT
|
|
36
|
+
|
|
37
|
+
## Support
|
|
38
|
+
|
|
39
|
+
Not a requirement in any way, but if this package helped you (or your company) and you feel like supporting my future work:
|
|
40
|
+
|
|
41
|
+
<a href="https://buymeacoffee.com/calintamas"><img src="https://user-images.githubusercontent.com/9104454/143683074-69dc6a53-3e54-4a2c-8dcf-c1e27448a2f4.png" alt="Buy me a coffee" width="150px" /></a>
|
|
@@ -72,7 +72,10 @@ export function AnimatedContainer({ children, isVisible, position, topOffset, bo
|
|
|
72
72
|
const newAnimationValue = isVisible ? 1 : 0;
|
|
73
73
|
animate(newAnimationValue);
|
|
74
74
|
}, [animate, isVisible]);
|
|
75
|
-
return (<Animated.View testID={getTestId('AnimatedContainer')} onLayout={computeViewDimensions} style={[styles.base, styles[position], animationStyles]}
|
|
75
|
+
return (<Animated.View testID={getTestId('AnimatedContainer')} onLayout={computeViewDimensions} style={[styles.base, styles[position], animationStyles]}
|
|
76
|
+
// This container View is never the target of touch events but its subviews can be.
|
|
77
|
+
// By doing this, tapping buttons behind the Toast is allowed
|
|
78
|
+
pointerEvents='box-none' {...panResponder.panHandlers}>
|
|
76
79
|
{children}
|
|
77
80
|
</Animated.View>);
|
|
78
81
|
}
|