react-native-toast-message 2.1.2 → 2.1.5

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,24 @@ Headers are one of:
9
9
 
10
10
  - `Added`, `Changed`, `Removed`, `Fixed` or `Breaking`.
11
11
 
12
+ ## [2.1.5]
13
+
14
+ ### Fixed
15
+
16
+ - chore(deps): bump ansi-regex from 4.1.0 to 4.1.1 by [dependabot](https://github.com/dependabot) in [#343](https://github.com/calintamas/react-native-toast-message/pull/343)
17
+
18
+ ## [2.1.4]
19
+
20
+ ### Fixed
21
+
22
+ - fix: delay after keyboard is dismissed by [rcb4t2](https://github.com/rcb4t2) in [#342](https://github.com/calintamas/react-native-toast-message/pull/342)
23
+
24
+ ## [2.1.3]
25
+
26
+ ### Fixed
27
+
28
+ - chore(deps): bump minimist from 1.2.5 to 1.2.6 by [dependabot](https://github.com/dependabot) in [#338](https://github.com/calintamas/react-native-toast-message/pull/338)
29
+
12
30
  ## [2.1.2]
13
31
 
14
32
  ### Fixed
@@ -20,7 +20,7 @@ export function useSlideAnimation({ position, height, topOffset, bottomOffset, k
20
20
  friction: 8
21
21
  }).start();
22
22
  }, []);
23
- const translateY = animatedValue.current.interpolate({
23
+ const translateY = React.useMemo(() => animatedValue.current.interpolate({
24
24
  inputRange: [0, 1],
25
25
  outputRange: translateYOutputRangeFor({
26
26
  position,
@@ -30,7 +30,7 @@ export function useSlideAnimation({ position, height, topOffset, bottomOffset, k
30
30
  keyboardHeight,
31
31
  keyboardOffset
32
32
  })
33
- });
33
+ }), [position, height, topOffset, bottomOffset, keyboardHeight, keyboardOffset]);
34
34
  const opacity = animatedValue.current.interpolate({
35
35
  inputRange: [0, 0.7, 1],
36
36
  outputRange: [0, 1, 1]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-toast-message",
3
- "version": "2.1.2",
3
+ "version": "2.1.5",
4
4
  "description": "Toast message component for React Native",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -33,13 +33,13 @@
33
33
  "@testing-library/react-hooks": "^7.0.2",
34
34
  "@testing-library/react-native": "^9.0.0",
35
35
  "@types/jest": "^27.0.1",
36
- "@types/react-native": "^0.66.2",
36
+ "@types/react-native": "^0.67.3",
37
37
  "eslint-config-backpacker-react-ts": "^0.3.0",
38
38
  "husky": "^7.0.2",
39
39
  "import-sort-style-module": "^6.0.0",
40
40
  "jest": "^27.1.1",
41
41
  "lint-staged": "^12.1.2",
42
- "metro-react-native-babel-preset": "^0.67.0",
42
+ "metro-react-native-babel-preset": "^0.69.0",
43
43
  "prettier": "^2.4.1",
44
44
  "prettier-plugin-import-sort": "^0.0.7",
45
45
  "react-test-renderer": "^17.0.2",