@jobber/components-native 0.46.0 → 0.46.2

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.46.0",
3
+ "version": "0.46.2",
4
4
  "license": "MIT",
5
5
  "description": "React Native implementation of Atlantis",
6
6
  "repository": {
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@jobber/design": "^0.44.4",
40
- "@jobber/hooks": "^2.1.5",
40
+ "@jobber/hooks": "^2.2.0",
41
41
  "@react-native-clipboard/clipboard": "^1.11.2",
42
42
  "@react-native-picker/picker": "^2.4.10",
43
43
  "autolinker": "^4.0.0",
@@ -84,5 +84,5 @@
84
84
  "react-native-reanimated": "^2.17.0",
85
85
  "react-native-safe-area-context": "^4.5.2"
86
86
  },
87
- "gitHead": "6ff59b16b38fdf784fa15bcfa41eb97181d2f6b0"
87
+ "gitHead": "3e19cd88bd918e5e8a6c047bc5b3683d60c31451"
88
88
  }
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable @typescript-eslint/no-unused-vars */
2
2
  import { createContext, useContext } from "react";
3
3
  import { DEFAULT_CURRENCY_SYMBOL } from "../InputCurrency/constants";
4
- export const defaultValues = {
4
+ export const atlantisContextDefaultValues = {
5
5
  dateFormat: "PP",
6
6
  // The system time is "p"
7
7
  timeFormat: "p",
@@ -18,7 +18,7 @@ export const defaultValues = {
18
18
  return;
19
19
  },
20
20
  };
21
- export const AtlantisContext = createContext(defaultValues);
21
+ export const AtlantisContext = createContext(atlantisContextDefaultValues);
22
22
  export function useAtlantisContext() {
23
23
  return useContext(AtlantisContext);
24
24
  }
@@ -1,5 +1,5 @@
1
1
  import { createContext, useContext, useRef } from "react";
2
- export const defaultValues = {
2
+ export const atlantisFormContextDefaultValues = {
3
3
  useConfirmBeforeBack: () => {
4
4
  const ref = useRef(() => undefined);
5
5
  return ref;
@@ -9,7 +9,7 @@ export const defaultValues = {
9
9
  removeLocalCache: () => undefined,
10
10
  }),
11
11
  };
12
- export const AtlantisFormContext = createContext(defaultValues);
12
+ export const AtlantisFormContext = createContext(atlantisFormContextDefaultValues);
13
13
  export function useAtlantisFormContext() {
14
14
  return useContext(AtlantisFormContext);
15
15
  }
@@ -1,5 +1,5 @@
1
1
  import { createContext, useContext } from "react";
2
- const defaultValues = {
2
+ const inputAccessoriesContextDefaultValues = {
3
3
  elements: {},
4
4
  focusedInput: "",
5
5
  canFocusNext: false,
@@ -11,7 +11,7 @@ const defaultValues = {
11
11
  onFocusPrevious: () => undefined,
12
12
  setFocusedInput: () => undefined,
13
13
  };
14
- export const InputAccessoriesContext = createContext(defaultValues);
14
+ export const InputAccessoriesContext = createContext(inputAccessoriesContextDefaultValues);
15
15
  export function useInputAccessoriesContext() {
16
16
  return useContext(InputAccessoriesContext);
17
17
  }