react-native-ui-lib 7.37.2-snapshot.6118 → 7.37.2-snapshot.6124

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": "react-native-ui-lib",
3
- "version": "7.37.2-snapshot.6118",
3
+ "version": "7.37.2-snapshot.6124",
4
4
  "main": "src/index.js",
5
5
  "types": "src/index.d.ts",
6
6
  "author": "Ethan Sharabi <ethan.shar@gmail.com>",
@@ -36,10 +36,7 @@ class Switch extends Component {
36
36
  accessibilityRole: 'switch',
37
37
  accessibilityState: {
38
38
  disabled,
39
- checked: value ? 'checked' : 'unchecked'
40
- },
41
- accessibilityValue: {
42
- text: value ? '1' : '0'
39
+ checked: value
43
40
  }
44
41
  };
45
42
  }
@@ -2,9 +2,8 @@ import { ViewStyle } from 'react-native';
2
2
  import { ComponentProps } from '../../testkit/new/Component.driver';
3
3
  export declare const SwitchDriver: (props: ComponentProps) => {
4
4
  getStyle: () => ViewStyle;
5
- getAccessibilityValue: () => boolean;
6
5
  isDisabled: () => boolean;
7
- isChecked: () => boolean;
6
+ isChecked: () => any;
8
7
  press: () => void;
9
8
  hasOnPress: () => boolean;
10
9
  onPressIn: () => void;
@@ -3,13 +3,11 @@ import { usePressableDriver } from "../../testkit/new/usePressable.driver";
3
3
  export const SwitchDriver = props => {
4
4
  const driver = usePressableDriver(useComponentDriver(props));
5
5
  const getStyle = () => driver.getElement().props.style;
6
- const getAccessibilityValue = () => driver.getElement().props.accessibilityValue?.text === '1';
7
6
  const isDisabled = () => driver.getElement().props.accessibilityState?.disabled === true;
8
- const isChecked = () => driver.getElement().props.accessibilityValue?.text === '1';
7
+ const isChecked = () => driver.getElement().props.accessibilityState?.checked;
9
8
  return {
10
9
  ...driver,
11
10
  getStyle,
12
- getAccessibilityValue,
13
11
  isDisabled,
14
12
  isChecked
15
13
  };