3
Supabase client not working properly with React Native CLI
Source: supabase/supabase#35706 · opened by @lakhveer02
I'm facing an issue using @supabase/supabase-js with React Native CLI (not Expo). It throws errors related to missing browser APIs like crypto, WebSocket, or fetch.
2. Installed Supabase and polyfills:
3. Added polyfills in index.js:
`js
import 'react-native-url-polyfill/auto';
import 'react-native-get-random-values';
import {decode, encode} from 'base64-js';
if (!global.crypto) global.crypto = require('crypto-es');
it can not run reactnative cli app it can show a errors
2. Installed Supabase and polyfills:
3. Added polyfills in index.js:
`js
import 'react-native-url-polyfill/auto';
import 'react-native-get-random-values';
import {decode, encode} from 'base64-js';
if (!global.crypto) global.crypto = require('crypto-es');
it can not run reactnative cli app it can show a errors
No pledges yet. Be the first to back this.
Comments
Similar requests
Make Apple provider Secret Key optional for native-only Sign in with Apple
6 votes · 0 comments
supabase/ssr: Offer other means of storing/sending session data other than cookies
3 votes · 0 comments
Expo app with oAuth UI
2 votes · 0 comments
Native integration between Supabase and ChartDB
27 votes · 0 comments
Native Python Execution Support in Supabase
4 votes · 0 comments
No comments yet.