@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 +5 -4
- package/dist/src/ActivityIndicator/ActivityIndicator.test.js +3 -3
- package/dist/src/ContentOverlay/ContentOverlay.test.js +0 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +5 -4
- package/src/ActivityIndicator/ActivityIndicator.test.tsx +7 -3
- package/src/ActivityIndicator/guide.md +1 -1
- package/src/ContentOverlay/BottomSheetKeyboardAwareScrollView.tsx +3 -4
- package/src/ContentOverlay/ContentOverlay.test.tsx +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components-native",
|
|
3
|
-
"version": "0.
|
|
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": "
|
|
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": "^
|
|
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": "
|
|
128
|
+
"gitHead": "d58819450555e691966244925a7152575316b0f5"
|
|
128
129
|
}
|
|
@@ -5,9 +5,13 @@ import { useReducedMotion } from "react-native-reanimated";
|
|
|
5
5
|
import type { ReactTestInstance } from "react-test-renderer";
|
|
6
6
|
import { ActivityIndicator } from "./index";
|
|
7
7
|
|
|
8
|
-
// `useReducedMotion`
|
|
9
|
-
//
|
|
10
|
-
|
|
8
|
+
// Reanimated's `useReducedMotion` reads the OS setting once at module load,
|
|
9
|
+
// so it is mocked to let tests toggle the reduced-motion branch.
|
|
10
|
+
jest.mock("react-native-reanimated", () => ({
|
|
11
|
+
__esModule: true,
|
|
12
|
+
...jest.requireActual("react-native-reanimated"),
|
|
13
|
+
useReducedMotion: jest.fn(() => false),
|
|
14
|
+
}));
|
|
11
15
|
|
|
12
16
|
const testId = "ActivityIndicator";
|
|
13
17
|
|
|
@@ -102,7 +102,7 @@ does not require keyboard or screen-reader interaction.
|
|
|
102
102
|
|
|
103
103
|
The default (`base`) presentation renders Material Design 3's three-layer
|
|
104
104
|
indeterminate ring. The implementation uses `react-native-svg` for the ring
|
|
105
|
-
geometry and `react-native-reanimated`
|
|
105
|
+
geometry and `react-native-reanimated` 4 for the motion — all worklet-driven so
|
|
106
106
|
the animation runs on the UI thread regardless of JS thread load.
|
|
107
107
|
|
|
108
108
|
The three concurrent animations (base only):
|
|
@@ -17,10 +17,9 @@ import Reanimated from "react-native-reanimated";
|
|
|
17
17
|
*
|
|
18
18
|
* @see https://kirillzyusko.github.io/react-native-keyboard-controller/docs/api/components/keyboard-aware-scroll-view#gorhombottom-sheet
|
|
19
19
|
*/
|
|
20
|
-
const AnimatedScrollView =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
);
|
|
20
|
+
const AnimatedScrollView = Reanimated.createAnimatedComponent(
|
|
21
|
+
KeyboardAwareScrollView,
|
|
22
|
+
);
|
|
24
23
|
|
|
25
24
|
const BottomSheetScrollViewComponent = createBottomSheetScrollableComponent<
|
|
26
25
|
BottomSheetScrollViewMethods,
|
|
@@ -17,7 +17,6 @@ import { Content } from "../Content";
|
|
|
17
17
|
import { Text } from "../Text";
|
|
18
18
|
|
|
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.
|