-
-
Notifications
You must be signed in to change notification settings - Fork 308
Expand file tree
/
Copy pathindex.js
More file actions
18 lines (16 loc) · 781 Bytes
/
Copy pathindex.js
File metadata and controls
18 lines (16 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/**
* @format
*/
// Spec-compliant global URL — RN's built-in mangles paths (adds trailing slashes),
// which breaks the MCP SDK's OAuth discovery. Must load before any network/OAuth code.
import 'react-native-url-polyfill/auto';
// Hermes does not provide TextEncoder/TextDecoder. Sync's proven EasyShare
// protocol requires both before the shared wire codec is loaded.
import 'text-encoding-polyfill';
// Hermes does not expose Web Crypto on every supported OS version. Install the
// secure getRandomValues polyfill before stores create persisted sync identities.
import 'react-native-get-random-values';
import { AppRegistry } from 'react-native';
import App from './App';
import { name as appName } from './app.json';
AppRegistry.registerComponent(appName, () => App);