mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
28 lines
776 B
TypeScript
28 lines
776 B
TypeScript
// SPDX-License-Identifier: BUSL-1.1; Copyright (c) 2025 Social Connect Labs, Inc.; Licensed under BUSL-1.1 (see LICENSE); Apache-2.0 from 2029-06-11
|
|
|
|
import 'react-native-get-random-values';
|
|
import './fonts.css';
|
|
import './reset.css';
|
|
|
|
import React from 'react';
|
|
import { createRoot } from 'react-dom/client';
|
|
import { TamaguiProvider, View } from 'tamagui';
|
|
|
|
import App from '../App';
|
|
import tamaguiConfig from '../tamagui.config.ts';
|
|
|
|
const Root = () => (
|
|
<TamaguiProvider config={tamaguiConfig}>
|
|
<View flex={1} height="100vh" width="100%">
|
|
<App />
|
|
</View>
|
|
</TamaguiProvider>
|
|
);
|
|
|
|
// Create root element and render the app
|
|
const container = document.getElementById('root');
|
|
if (container) {
|
|
const root = createRoot(container);
|
|
root.render(<Root />);
|
|
}
|