@jobber/components-native 0.43.0 → 0.43.1-pre.4
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/consumerSetup.js +41 -0
- package/dist/src/Form/context/AtlantisFormContext.js +0 -1
- package/dist/src/Form/hooks/useScreenInformation.js +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/src/Form/context/AtlantisFormContext.d.ts +0 -1
- package/dist/types/src/Form/context/types.d.ts +0 -1
- package/package.json +10 -9
- package/src/Form/context/AtlantisFormContext.tsx +0 -1
- package/src/Form/context/types.ts +0 -1
- package/src/Form/hooks/useScreenInformation.ts +2 -2
|
@@ -6,7 +6,6 @@ export declare const defaultValues: {
|
|
|
6
6
|
setLocalCache: () => undefined;
|
|
7
7
|
removeLocalCache: () => undefined;
|
|
8
8
|
};
|
|
9
|
-
headerHeight: number;
|
|
10
9
|
};
|
|
11
10
|
export declare const AtlantisFormContext: import("react").Context<AtlantisFormContextProps>;
|
|
12
11
|
export declare function useAtlantisFormContext(): AtlantisFormContextProps;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components-native",
|
|
3
|
-
"version": "0.43.
|
|
3
|
+
"version": "0.43.1-pre.4+82e8d462",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "React Native implementation of Atlantis",
|
|
6
6
|
"repository": {
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"ios",
|
|
25
25
|
"cpp",
|
|
26
26
|
"*.podspec",
|
|
27
|
-
"!ios/build"
|
|
27
|
+
"!ios/build",
|
|
28
|
+
"consumerSetup.js"
|
|
28
29
|
],
|
|
29
30
|
"scripts": {
|
|
30
31
|
"clean": "rm -rf dist/* tsconfig.tsbuildinfo",
|
|
@@ -44,12 +45,9 @@
|
|
|
44
45
|
"lodash": "^4.17.21",
|
|
45
46
|
"react-hook-form": "^7.30.0",
|
|
46
47
|
"react-intl": "^6.4.2",
|
|
47
|
-
"react-native-
|
|
48
|
-
"react-native-localize": "^2.2.6",
|
|
48
|
+
"react-native-keyboard-aware-scroll-view": "^0.9.5",
|
|
49
49
|
"react-native-modalize": "^2.0.13",
|
|
50
50
|
"react-native-portalize": "^1.0.7",
|
|
51
|
-
"react-native-reanimated": "^2.17.0",
|
|
52
|
-
"react-native-safe-area-context": "^4.5.3",
|
|
53
51
|
"react-native-svg": "^13.9.0",
|
|
54
52
|
"react-native-toast-message": "^2.1.6",
|
|
55
53
|
"react-native-uuid": "^1.4.9",
|
|
@@ -66,7 +64,6 @@
|
|
|
66
64
|
"@types/react-native": "^0.71.6",
|
|
67
65
|
"@types/react-native-uuid": "^1.4.0",
|
|
68
66
|
"metro-react-native-babel-preset": "^0.76.0",
|
|
69
|
-
"react-native-keyboard-aware-scroll-view": "^0.9.5",
|
|
70
67
|
"react-test-renderer": "^18.2.0",
|
|
71
68
|
"typescript": "^4.9.5"
|
|
72
69
|
},
|
|
@@ -77,7 +74,11 @@
|
|
|
77
74
|
"date-fns-tz": "*",
|
|
78
75
|
"react": "^18",
|
|
79
76
|
"react-native": ">=0.69.2",
|
|
80
|
-
"react-native-
|
|
77
|
+
"react-native-gesture-handler": "^2.10.0",
|
|
78
|
+
"react-native-localize": "^2.2.0",
|
|
79
|
+
"react-native-modal-datetime-picker": " >=13.0.0",
|
|
80
|
+
"react-native-reanimated": "^2.17.0",
|
|
81
|
+
"react-native-safe-area-context": "^4.5.0"
|
|
81
82
|
},
|
|
82
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "82e8d4623bc18b20ecc3edb10e3077577ac71c02"
|
|
83
84
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useWindowDimensions } from "react-native";
|
|
2
2
|
import { EdgeInsets, useSafeAreaInsets } from "react-native-safe-area-context";
|
|
3
3
|
import { KEYBOARD_TOP_PADDING_AUTO_SCROLL } from "../constants";
|
|
4
|
-
import {
|
|
4
|
+
import { useAtlantisContext } from "../../AtlantisContext";
|
|
5
5
|
|
|
6
6
|
interface UseScreenInformation {
|
|
7
7
|
readonly windowHeight: number;
|
|
@@ -10,7 +10,7 @@ interface UseScreenInformation {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export function useScreenInformation(): UseScreenInformation {
|
|
13
|
-
const { headerHeight } =
|
|
13
|
+
const { headerHeight } = useAtlantisContext();
|
|
14
14
|
const windowHeight = useWindowDimensions().height;
|
|
15
15
|
const headerHeightWithPadding =
|
|
16
16
|
headerHeight + KEYBOARD_TOP_PADDING_AUTO_SCROLL;
|