@artsy/palette-mobile 11.0.36 → 11.0.37
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 +12 -0
- package/dist/elements/Screen/Header.js +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v11.0.37 (Wed Jun 07 2023)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- refactor: adjust tab header animation [#111](https://github.com/artsy/palette-mobile/pull/111) ([@gkartalis](https://github.com/gkartalis))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- George Kartalis ([@gkartalis](https://github.com/gkartalis))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v11.0.36 (Wed Jun 07 2023)
|
|
2
14
|
|
|
3
15
|
#### 🐛 Bug Fix
|
|
@@ -53,14 +53,14 @@ const Header = ({ animated = false, hideLeftElements, hideRightElements, hideTit
|
|
|
53
53
|
return null;
|
|
54
54
|
}
|
|
55
55
|
if (!animated) {
|
|
56
|
-
return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { flex: 1, justifySelf: "stretch", ...titleProps, children: (0, jsx_runtime_1.jsx)(Text_1.Text, { variant: "
|
|
56
|
+
return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { flex: 1, justifySelf: "stretch", ...titleProps, children: (0, jsx_runtime_1.jsx)(Text_1.Text, { variant: "sm-display", numberOfLines: 1, children: title }) }));
|
|
57
57
|
}
|
|
58
58
|
// Show / hide the title to avoid rerenders, which retrigger the animation
|
|
59
59
|
const display = scrollY < constants_1.NAVBAR_HEIGHT ? "none" : "flex";
|
|
60
|
-
return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { flex: 1, flexDirection: "row", children: (0, jsx_runtime_1.jsx)(react_native_reanimated_1.default.View, { entering: react_native_reanimated_1.
|
|
60
|
+
return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { flex: 1, flexDirection: "row", children: (0, jsx_runtime_1.jsx)(react_native_reanimated_1.default.View, { entering: react_native_reanimated_1.FadeIn.duration(400).easing(react_native_reanimated_1.Easing.out(react_native_reanimated_1.Easing.exp)), exiting: react_native_reanimated_1.FadeOut.duration(400).easing(react_native_reanimated_1.Easing.out(react_native_reanimated_1.Easing.exp)), style: {
|
|
61
61
|
display,
|
|
62
62
|
flex: 1,
|
|
63
|
-
}, children: (0, jsx_runtime_1.jsx)(Flex_1.Flex, { alignItems: "center", width: "100%", ...titleProps, children: (0, jsx_runtime_1.jsx)(Text_1.Text, { variant: "
|
|
63
|
+
}, children: (0, jsx_runtime_1.jsx)(Flex_1.Flex, { alignItems: "center", width: "100%", ...titleProps, children: (0, jsx_runtime_1.jsx)(Text_1.Text, { variant: "sm-display", numberOfLines: 1, children: title }) }) }) }));
|
|
64
64
|
};
|
|
65
65
|
const Right = () => {
|
|
66
66
|
if (hideRightElements) {
|