Sfoglia il codice sorgente

refactor(app): 重命名 App 组件为 AppMain

重命名了以下内容:
- 将 App.tsx 文件重命名为 AppMain.tsx
- 更新了 AppRegistry.registerComponent 中的组件引用
- 修改了组件名称,从 App 改
xuqm 3 giorni fa
parent
commit
4b84f838dd
2 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 2 2
      src/app/AppMain.tsx
  2. 2 2
      src/app/app.ts

+ 2 - 2
src/app/App.tsx → src/app/AppMain.tsx

@@ -6,7 +6,7 @@ import NavigationContainer from '@app/routes/NavigationContainer';
 import BottomSheet from '@common/components/BottomSheet.tsx';
 import Alert from '@common/components/Alert.tsx';
 
-function App() {
+function AppMain() {
   const isDarkMode = useColorScheme() === 'dark';
 
   return (
@@ -24,4 +24,4 @@ function App() {
   );
 }
 
-export default App;
+export default AppMain;

+ 2 - 2
src/app/app.ts

@@ -1,6 +1,6 @@
 import { AppRegistry } from 'react-native';
-import App from './App.tsx';
 import { Apps } from '@common/NavigationHelper.ts';
 import '@common/common.ts'
+import AppMain from '@app/AppMain.tsx';
 
-AppRegistry.registerComponent(Apps.App, () => App);
+AppRegistry.registerComponent(Apps.App, () => AppMain);