mirror of
https://github.com/selfxyz/self.git
synced 2026-01-09 06:38:09 -05:00
* Refactor mobile app utilities into new modules * prettier * update lock, feedback from codex * fix path * keep some files in utils * fix tests * update paths * remove old docs * cr feedback * flatten inefficient paths * better structure * update test folder structure * migrate images * fix import * fix Sentry path * update ignore * save wip migration * more updates * standardize component names * rename assets * fix linting * add barrel exports. final refactor commit * fix formatting * fix nav bar * reduce bundle size * remove dupe license * fix test * fix merge issues * add refactor doc so we can track what was imporoved * cr feedback * feedback
41 lines
1.0 KiB
JavaScript
41 lines
1.0 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 { TamaguiProvider } from 'tamagui';
|
|
|
|
import App from './App';
|
|
import { name as appName } from './app.json';
|
|
import tamaguiConfig from './tamagui.config';
|
|
|
|
import './src/utils/crypto/ethers';
|
|
import 'react-native-gesture-handler';
|
|
|
|
// Set global Buffer before any other imports
|
|
global.Buffer = Buffer;
|
|
|
|
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);
|