-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentrypoint.js
More file actions
30 lines (24 loc) · 986 Bytes
/
Copy pathentrypoint.js
File metadata and controls
30 lines (24 loc) · 986 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* eslint-disable */
// https://docs.privy.io/basics/react-native/installation
import 'react-native-get-random-values';
import 'react-native-url-polyfill/auto';
import * as Crypto from 'expo-crypto';
console.log('🔑 Expo Crypto:', Crypto.getRandomValues, Crypto.randomUUID);
// privyのdocumentation通りだとerrorになるのでいろいろ追加😭
// attach to global
if (typeof global.crypto !== 'object') global.crypto = {};
global.crypto.getRandomValues = Crypto.getRandomValues;
global.crypto.randomUUID = Crypto.randomUUID;
import '@ethersproject/shims';
import { Buffer } from '@craftzdog/react-native-buffer';
import { TextEncoder, TextDecoder } from 'text-encoding';
global.Buffer = Buffer;
global.TextEncoder = TextEncoder;
global.TextDecoder = TextDecoder;
import notifee from '@notifee/react-native';
notifee.registerForegroundService(() => {
return new Promise(() => {
console.log('Foreground service started');
});
});
import 'expo-router/entry';