FeatureFuel
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

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests