diff --git a/README.md b/README.md index bcb1393..7f93c4f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@

jest-native

- + - +

Custom jest matchers to test the state of React Native.

@@ -117,15 +117,18 @@ toBeDisabled(); Check whether or not an element is disabled from a user perspective. This matcher will check if the element or its parent has a `disabled` prop, or if it has -`accessibilityStates={['disabled']}`. +`accessibilityState={{disabled: true]}. + +It also works with `accessibilityStates={['disabled']}` for now. However, this prop is deprecated in +React Native [0.62](https://reactnative.dev/blog/2020/03/26/version-0.62#breaking-changes) #### Examples ```javascript const { getByTestId } = render( -