Open
Description
When upgrading from react-native 0.59 to 0.62 we discovered some breaking API changes that make ReactXP fail to load!
Issue 1: AccessibilityInfo
In react-native 0.60, a breaking change was introduced that deleted the fetch()
API and added helpers for granular AccessibilitySettings.
0.59 AccessibilityInfo Docs
0.60 AccessibilityInfo Docs
This manifests in an error on import of "reactxp":
Test suite failed to run
TypeError: Cannot read property 'then' of undefined
8 | */
9 | import React from "react";
> 10 | import * as RX from "reactxp";
| ^
11 |
12 | export { IntlShape } from "react-intl";
13 | import {
at new Accessibility (node_modules/reactxp/dist/native-common/Accessibility.js:41:56)
I think there's a workaround for jest here, of defining fetch()
in client-side code.
That however does mean that this API needs significant updates for react-native 0.6* support!