@jobber/components-native 0.115.5 → 0.116.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.115.5",
3
+ "version": "0.116.0",
4
4
  "license": "MIT",
5
5
  "description": "React Native implementation of Atlantis",
6
6
  "repository": {
@@ -96,11 +96,12 @@
96
96
  "react-native-gesture-handler": "^2.29.1",
97
97
  "react-native-keyboard-controller": "^1.12.0",
98
98
  "react-native-modal-datetime-picker": "^18.0.0",
99
- "react-native-reanimated": "^3.7.1",
99
+ "react-native-reanimated": "4.2.3",
100
100
  "react-native-safe-area-context": "^5.4.0",
101
101
  "react-native-screens": "^4.18.0",
102
102
  "react-native-svg": "^15.1.0",
103
103
  "react-native-web": "^0.20.0",
104
+ "react-native-worklets": "0.7.4",
104
105
  "react-test-renderer": "19.1.1",
105
106
  "storybook": "10.3.5",
106
107
  "vite": "^8.0.9"
@@ -119,10 +120,10 @@
119
120
  "react-native-gesture-handler": ">=2.22.0",
120
121
  "react-native-keyboard-controller": "^1.20.7",
121
122
  "react-native-modal-datetime-picker": " >=13.0.0",
122
- "react-native-reanimated": "^3.0.0",
123
+ "react-native-reanimated": "^4.0.0",
123
124
  "react-native-safe-area-context": "^5.4.0",
124
125
  "react-native-screens": ">=4.18.0",
125
126
  "react-native-svg": ">=12.0.0"
126
127
  },
127
- "gitHead": "9b27100be34c36aa1d4717f298cea4388ab9277d"
128
+ "gitHead": "d58819450555e691966244925a7152575316b0f5"
128
129
  }
@@ -3,9 +3,9 @@ import { AccessibilityInfo } from "react-native";
3
3
  import { render } from "@testing-library/react-native";
4
4
  import { useReducedMotion } from "react-native-reanimated";
5
5
  import { ActivityIndicator } from "./index";
6
- // `useReducedMotion` is mocked globally in src/__mocks__/__mocks.ts and
7
- // defaults to returning `false`. Tests that exercise the reduced-motion
8
- // branch override the return value below.
6
+ // Reanimated's `useReducedMotion` reads the OS setting once at module load,
7
+ // so it is mocked to let tests toggle the reduced-motion branch.
8
+ jest.mock("react-native-reanimated", () => (Object.assign(Object.assign({ __esModule: true }, jest.requireActual("react-native-reanimated")), { useReducedMotion: jest.fn(() => false) })));
9
9
  const testId = "ActivityIndicator";
10
10
  describe("ActivityIndicator", () => {
11
11
  beforeEach(() => {
@@ -17,7 +17,6 @@ import { Button } from "../Button";
17
17
  import { Content } from "../Content";
18
18
  import { Text } from "../Text";
19
19
  jest.unmock("../hooks/useIsScreenReaderEnabled");
20
- jest.unmock("react-native-reanimated");
21
20
  jest.unmock("@gorhom/bottom-sheet");
22
21
  jest.mock("@gorhom/bottom-sheet/lib/commonjs/hooks/useAnimatedLayout", () => ({
23
22
  // Fix for reanimated not actually running in the test environment.