diff --git a/README.md b/README.md index 4a87691e..fd6beb9f 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,10 @@ This SDK supports the following platforms: **React**: The library ships with a number of providers and hooks for React, which provide a closer integration with that ecosystem. For more information on using Ably Chat in React, see the [React readme](./src/react/README.md). +**React Native** We aim to support all platforms supported by React Native. If you find any issues please raise an issue or contact us. + +There is a known caveat in the current version of the library in environments where `structuredClone` is not defined. To address this, you can use a polyfill such as [@ungap/structured-clone](https://www.npmjs.com/package/@ungap/structured-clone). + ## Supported chat features This project is under development so we will be incrementally adding new features. At this stage, you'll find APIs for the following chat features: diff --git a/cspell.json b/cspell.json index 84665821..011b4281 100644 --- a/cspell.json +++ b/cspell.json @@ -15,10 +15,9 @@ "Suspendable", "Failable", "livestreams", - "livestream" + "livestream", + "ungap" ], "ignoreRegExpList": ["/.*@\\d{13}-/"], - "flagWords": [ - "cancelled" - ] + "flagWords": ["cancelled"] } diff --git a/package.json b/package.json index 62a10186..4a30f293 100644 --- a/package.json +++ b/package.json @@ -6,17 +6,21 @@ "main": "dist/chat/ably-chat.umd.cjs", "browser": "dist/chat/ably-chat.js", "types": "dist/chat/index.d.ts", + "react-native": "dist/react/ably-chat-react.umd.cjs", "exports": { ".": { "types": "./dist/chat/index.d.ts", "import": "./dist/chat/ably-chat.js", - "require": "./dist/chat/ably-chat.umd.cjs" + "require": "./dist/chat/ably-chat.umd.cjs", + "react-native": "./dist/chat/ably-chat.umd.cjs" }, "./react": { "types": "./dist/react/index.d.ts", "import": "./dist/react/ably-chat-react.js", - "require": "./dist/react/ably-chat-react.umd.cjs" - } + "require": "./dist/react/ably-chat-react.umd.cjs", + "react-native": "./dist/react/ably-chat-react.umd.cjs" + }, + "./package.json": "./package.json" }, "scripts": { "lint": "eslint . && npm run cspell",