mirror of
https://github.com/selfxyz/self.git
synced 2026-01-14 17:17:59 -05:00
* chore: centralize license header scripts * chore: run license header checks from root * add header to other files * add header to bundle * add migration script and update check license headers * convert license to mobile sdk * migrate license headers * remove headers from common; convert remaining * fix headers * add license header checks
43 lines
1.1 KiB
JavaScript
43 lines
1.1 KiB
JavaScript
// SPDX-FileCopyrightText: 2025 Social Connect Labs, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
// NOTE: Converts to Apache-2.0 on 2029-06-11 per LICENSE.
|
|
|
|
/**
|
|
* @format
|
|
*/
|
|
|
|
// CRITICAL: Import crypto polyfill FIRST, before any modules that use crypto/uuid
|
|
// eslint-disable-next-line simple-import-sort/imports
|
|
import 'react-native-get-random-values';
|
|
|
|
import { Buffer } from 'buffer';
|
|
import React from 'react';
|
|
import { AppRegistry, LogBox } from 'react-native';
|
|
import { createTamagui, TamaguiProvider } from 'tamagui';
|
|
|
|
import App from './App';
|
|
import { name as appName } from './app.json';
|
|
|
|
import './src/utils/ethers';
|
|
import 'react-native-gesture-handler';
|
|
import { config } from '@tamagui/config/v2-native';
|
|
|
|
// Set global Buffer before any other imports
|
|
global.Buffer = Buffer;
|
|
|
|
const tamaguiConfig = createTamagui(config);
|
|
|
|
LogBox.ignoreLogs([
|
|
/bad setState/,
|
|
'Warning, duplicate ID for input',
|
|
/Warning, duplicate ID for input/,
|
|
]);
|
|
|
|
const Root = () => (
|
|
<TamaguiProvider config={tamaguiConfig}>
|
|
<App />
|
|
</TamaguiProvider>
|
|
);
|
|
|
|
AppRegistry.registerComponent(appName, () => Root);
|