@artsy/palette-mobile 11.0.13 → 11.0.14

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
@@ -1,3 +1,15 @@
1
+ # v11.0.14 (Fri Apr 14 2023)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - fix: reanimated button crash fix [#87](https://github.com/artsy/palette-mobile/pull/87) ([@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.13 (Thu Apr 13 2023)
2
14
 
3
15
  #### 🐛 Bug Fix
@@ -118,6 +118,11 @@ const useStateWithProp = (prop) => {
118
118
  (0, react_1.useEffect)(() => {
119
119
  setState(!!prop);
120
120
  }, [prop]);
121
- const stateV = (0, react_native_reanimated_1.useDerivedValue)(() => (!!state ? 1 : 0), [state]);
121
+ const stateV = (0, react_native_reanimated_1.useDerivedValue)(() => {
122
+ if (!!state) {
123
+ return 1;
124
+ }
125
+ return 0;
126
+ }, [state]);
122
127
  return [state, setState, stateV];
123
128
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/palette-mobile",
3
- "version": "11.0.13",
3
+ "version": "11.0.14",
4
4
  "description": "Artsy's design system for React Native",
5
5
  "scripts": {
6
6
  "android": "react-native run-android",