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

重命名了以下内容:
- 将 App.tsx 文件重命名为 AppMain.tsx
- 更新了 AppRegistry.registerComponent 中的组件引用
- 修改了组件名称,从 App 改
这个提交包含在:
xuqm 2025-09-02 11:19:12 +08:00
父节点 05a81e4ff2
当前提交 4b84f838dd
共有 2 个文件被更改,包括 4 次插入4 次删除

查看文件

@ -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;

查看文件

@ -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);