From 8d93a42343b935d67bf7bbd56cf1bb1cf5be2ae3 Mon Sep 17 00:00:00 2001 From: huhuanming Date: Sun, 22 Oct 2023 16:29:08 +0800 Subject: [PATCH] fix: desktop version works --- apps/desktop/App.js | 20 -------------------- apps/desktop/App.tsx | 9 +++++++++ apps/desktop/index.js | 2 +- apps/mobile/App.tsx | 1 - 4 files changed, 10 insertions(+), 22 deletions(-) delete mode 100644 apps/desktop/App.js create mode 100644 apps/desktop/App.tsx diff --git a/apps/desktop/App.js b/apps/desktop/App.js deleted file mode 100644 index 09f879b8277..00000000000 --- a/apps/desktop/App.js +++ /dev/null @@ -1,20 +0,0 @@ -import { StatusBar } from 'expo-status-bar'; -import { StyleSheet, Text, View } from 'react-native'; - -export default function App() { - return ( - - Open up App.js to start working on your app! - - - ); -} - -const styles = StyleSheet.create({ - container: { - flex: 1, - backgroundColor: '#fff', - alignItems: 'center', - justifyContent: 'center', - }, -}); diff --git a/apps/desktop/App.tsx b/apps/desktop/App.tsx new file mode 100644 index 00000000000..e890c15a097 --- /dev/null +++ b/apps/desktop/App.tsx @@ -0,0 +1,9 @@ +/* eslint-disable @typescript-eslint/no-unused-vars, import/first, import/order */ +import '@onekeyhq/shared/src/polyfills'; +import '@onekeyhq/shared/src/web/index.css'; + +import { KitProvider } from '@onekeyhq/kit'; + +console.log('KitProvider', KitProvider); + +export default KitProvider; diff --git a/apps/desktop/index.js b/apps/desktop/index.js index 0c8b5b18588..1d6e981ef6c 100644 --- a/apps/desktop/index.js +++ b/apps/desktop/index.js @@ -5,4 +5,4 @@ import App from './App'; // registerRootComponent calls AppRegistry.registerComponent('main', () => App); // It also ensures that whether you load the app in Expo Go or in a native build, // the environment is set up appropriately -registerRootComponent(App); \ No newline at end of file +registerRootComponent(App); diff --git a/apps/mobile/App.tsx b/apps/mobile/App.tsx index d65fca8d340..eee7b145c58 100644 --- a/apps/mobile/App.tsx +++ b/apps/mobile/App.tsx @@ -1,7 +1,6 @@ /* eslint-disable @typescript-eslint/no-unused-vars, import/first, import/order */ import '@onekeyhq/shared/src/polyfills'; -console.log('polyfills----'); import { KitProvider } from '@onekeyhq/kit'; console.log('KitProvider', KitProvider);