@jobber/components-native 0.116.10 → 0.116.11

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.116.10",
3
+ "version": "0.116.11",
4
4
  "license": "MIT",
5
5
  "description": "React Native implementation of Atlantis",
6
6
  "author": "The Frends",
@@ -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": "b8df45944a9fe1a98b5ca5d0b872169d37f5ed4a"
122
122
  }
@@ -10,7 +10,7 @@ export function BaseSwitch({ value, defaultValue, onValueChange, disabled = fals
10
10
  value: value !== null && value !== void 0 ? value : defaultValue,
11
11
  });
12
12
  const internalValue = value !== null && value !== void 0 ? value : field.value;
13
- const { tokens } = useAtlantisTheme();
13
+ const { tokens, effectiveTheme } = useAtlantisTheme();
14
14
  function getThumbColor() {
15
15
  if (Platform.OS === "android") {
16
16
  if (disabled) {
@@ -30,7 +30,9 @@ export function BaseSwitch({ value, defaultValue, onValueChange, disabled = fals
30
30
  return {
31
31
  true: disabled
32
32
  ? tokens["color-disabled--secondary"]
33
- : tokens["color-base-green--400"],
33
+ : tokens[effectiveTheme === "dark"
34
+ ? "color-base-green--700"
35
+ : "color-base-green--400"],
34
36
  false: disabled
35
37
  ? tokens["color-disabled--secondary"]
36
38
  : tokens["color-disabled"],