Ross
Ross•3y ago

Hey guys Does anyone know the list of

Hey guys. Does anyone know the list of polyfills to get convex working in React Native?
4 Replies
sujayakar
sujayakar•3y ago
hi @Ross! we're actually working on react native example app at the moment, and will have it ready for our next release as an example. but, in the meantime, all you should need to do is... 1. npm install react-dom react-native-get-random-values 2. disable the unsaved changes warning when creating the convex client:
const convex = new ConvexReactClient(clientConfig, {
// We need to disable this to be compatible with React Native
unsavedChangesWarning: false,
});
const convex = new ConvexReactClient(clientConfig, {
// We need to disable this to be compatible with React Native
unsavedChangesWarning: false,
});
let me know if that works! i'll also ping sarah, who's been working on react native stuff, to chime in too 🙂
Ross
RossOP•3y ago
Legend, thank you! Will give it a try.
ian
ian•3y ago
@Ross we now have docs & an example app for React Native: https://docs.convex.dev/using/integrations/react-native
React Native | Convex Developer Hub
How Convex works in a React Native app
Ross
RossOP•3y ago
Cheers, well done guys!

Did you find this page helpful?