import 'react-native-get-random-values' import 'react-native-url-polyfill/auto' import { init, setPlatform, ReactNativeSessionManager, } from '@bounded-sh/client' import { createMMKV } from 'react-native-mmkv' import { decode as atob, encode as btoa } from 'base-64' const mmkv = createMMKV() const storage = { getItem: (key: string) => mmkv.getString(key) ?? null, setItem: (key: string, value: string) => mmkv.set(key, value), removeItem: (key: string) => mmkv.remove(key), } setPlatform({ storage, sessionStorage: storage, atob, btoa, hasDOM: false }) ReactNativeSessionManager.configure({ storage, atob }) await init({ appId: '' })