34 lines
780 B
JavaScript
34 lines
780 B
JavaScript
import 'react-native-gesture-handler';
|
|
|
|
/**
|
|
* @format
|
|
* @lint-ignore-every XPLATJSCOPYRIGHT1
|
|
*/
|
|
|
|
// polyfills
|
|
import 'react-native-get-random-values';
|
|
import 'react-native-url-polyfill/auto';
|
|
import 'message-port-polyfill';
|
|
const TextEncodingPolyfill = require("text-encoding");
|
|
import Long from 'long';
|
|
import protobuf from 'protobufjs';
|
|
|
|
const applyGlobalPolyfills = () => {
|
|
Object.assign(global, {
|
|
TextEncoder: TextEncodingPolyfill.TextEncoder,
|
|
TextDecoder: TextEncodingPolyfill.TextDecoder,
|
|
});
|
|
};
|
|
|
|
applyGlobalPolyfills();
|
|
|
|
protobuf.util.Long = Long;
|
|
protobuf.configure();
|
|
|
|
import {AppRegistry} from 'react-native';
|
|
import './shim.js';
|
|
import App from './App.tsx';
|
|
import {name as appName} from './app.json';
|
|
|
|
AppRegistry.registerComponent(appName, () => App);
|