@jobber/components-native 0.116.10 → 0.116.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components-native",
3
- "version": "0.116.10",
3
+ "version": "0.116.12",
4
4
  "license": "MIT",
5
5
  "description": "React Native implementation of Atlantis",
6
6
  "author": "The Frends",
@@ -67,7 +67,7 @@
67
67
  "@babel/runtime": "^7.29.2",
68
68
  "@gorhom/bottom-sheet": "^5.2.8",
69
69
  "@jobber/design": "0.124.0",
70
- "@jobber/hooks": "2.21.4",
70
+ "@jobber/hooks": "2.22.0",
71
71
  "@react-native-community/datetimepicker": "^8.4.5",
72
72
  "@react-native/babel-preset": "^0.82.1",
73
73
  "@storybook/addon-a11y": "10.3.5",
@@ -118,5 +118,5 @@
118
118
  "react-native-screens": ">=4.18.0",
119
119
  "react-native-svg": ">=12.0.0"
120
120
  },
121
- "gitHead": "02daebdbba08f799a0e3815949bf32e1e3d1e3e7"
121
+ "gitHead": "483fa16db4fa78cefddcade2c7181c3ade357c86"
122
122
  }
@@ -51,7 +51,7 @@ export function BaseSwitch({
51
51
 
52
52
  const internalValue = value ?? field.value;
53
53
 
54
- const { tokens } = useAtlantisTheme();
54
+ const { tokens, effectiveTheme } = useAtlantisTheme();
55
55
 
56
56
  function getThumbColor() {
57
57
  if (Platform.OS === "android") {
@@ -72,7 +72,11 @@ export function BaseSwitch({
72
72
  return {
73
73
  true: disabled
74
74
  ? tokens["color-disabled--secondary"]
75
- : tokens["color-base-green--400"],
75
+ : tokens[
76
+ effectiveTheme === "dark"
77
+ ? "color-base-green--700"
78
+ : "color-base-green--400"
79
+ ],
76
80
  false: disabled
77
81
  ? tokens["color-disabled--secondary"]
78
82
  : tokens["color-disabled"],