@jobber/components-native 0.57.1 → 0.58.0

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/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components-native",
3
- "version": "0.57.1",
3
+ "version": "0.58.0",
4
4
  "license": "MIT",
5
5
  "description": "React Native implementation of Atlantis",
6
6
  "repository": {
@@ -81,8 +81,8 @@
81
81
  "react-native-modal-datetime-picker": " >=13.0.0",
82
82
  "react-native-modalize": "^2.0.13",
83
83
  "react-native-portalize": "^1.0.7",
84
- "react-native-reanimated": "^2.17.0",
84
+ "react-native-reanimated": "^2.0.0 || ^3.0.0",
85
85
  "react-native-safe-area-context": "^4.5.2"
86
86
  },
87
- "gitHead": "bf2132c76af35652ee8ec827210eb178c77fb87c"
87
+ "gitHead": "2c51269444439812f97d74b8cb041895ce2b6991"
88
88
  }
@@ -6,6 +6,9 @@ import { tokens } from "../../../utils/design";
6
6
  const imageWidth = 96;
7
7
  const offset = PixelRatio.roundToNearestPixel(imageWidth / PixelRatio.get());
8
8
  const leftOffset = -1 * offset;
9
+ // looks like deprecation for FlatList in reanimated is cascading down to other exports
10
+ // This is not createAnimatedComponent(FlatList), we are fine
11
+ // eslint-disable-next-line import/no-deprecated
9
12
  const AnimatedImage = Animated.createAnimatedComponent(ImageBackground);
10
13
  function InternalButtonLoadingInternal({ variation, type, }) {
11
14
  const translateX = useSharedValue(0);
@@ -1,12 +1,12 @@
1
1
  import React, { useState } from "react";
2
- import { ScrollView, TouchableOpacity, View, } from "react-native";
2
+ import { TouchableOpacity, View } from "react-native";
3
3
  import Reanimated, { Easing, useAnimatedStyle, useSharedValue, withTiming, } from "react-native-reanimated";
4
4
  import { EASE_CUBIC_IN_OUT } from "./constants";
5
5
  import { styles } from "./Disclosure.style";
6
6
  import { tokens } from "../utils/design";
7
7
  import { Icon } from "../Icon";
8
- const ReanimatedView = Reanimated.createAnimatedComponent(View);
9
- const ReanimatedScrollView = Reanimated.createAnimatedComponent(ScrollView);
8
+ const ReanimatedView = Reanimated.View;
9
+ const ReanimatedScrollView = Reanimated.ScrollView;
10
10
  export function Disclosure({ content, header, open, onToggle, isEmpty, animationDuration = tokens["timing-slowest"], }) {
11
11
  return (React.createElement(View, { style: styles.container },
12
12
  React.createElement(DisclosureHeader, Object.assign({}, { header, onToggle, isEmpty, open, animationDuration })),