按设计稿修改,中英文,ios图标问题,statusbar等
This commit is contained in:
1 parent
b6e6905d05
commit
5462cf5abe
37 files changed
+1641
-975
No files matched your search
@@ -8,6 +8,9 @@ import InfoScreen from "./src/InfoScreen";
|
||||
import DfuScreen from "./src/DfuScreen";
|
||||
import PrivacyScreen from "./src/PrivacyScreen";
|
||||
import SplashScreen from "./src/SplashScreen"; // ✅ 新增启动页
|
||||
import pxToDp from "./src/helper/pxToDp";
|
||||
import SettingScreen from "./src/SettingScreen";
|
||||
import './src/i18n'
|
||||
|
||||
export type RootStackParamList = {
|
||||
Splash: undefined;
|
||||
@@ -16,6 +19,7 @@ export type RootStackParamList = {
|
||||
Info: { peripheral: any };
|
||||
Dfu: { deviceId: string; name: string; firmware: string };
|
||||
Privacy: undefined;
|
||||
Setting: undefined;
|
||||
};
|
||||
|
||||
const Stack = createNativeStackNavigator<RootStackParamList>();
|
||||
@@ -25,13 +29,9 @@ export default function App() {
|
||||
<NavigationContainer>
|
||||
<Stack.Navigator
|
||||
initialRouteName="Splash"
|
||||
// ✅ 统一所有导航栏样式
|
||||
screenOptions={{
|
||||
headerStyle: { backgroundColor: "#E7141E" }, // 顶部背景红色
|
||||
headerTintColor: "#fff", // 返回箭头和文字为白色
|
||||
headerTitleStyle: { fontWeight: "bold", color: "#fff" }, // 标题白色+加粗
|
||||
}}
|
||||
>
|
||||
animation : 'slide_from_right'
|
||||
}}>
|
||||
{/* 启动页(无标题) */}
|
||||
<Stack.Screen
|
||||
name="Splash"
|
||||
@@ -43,29 +43,39 @@ export default function App() {
|
||||
<Stack.Screen
|
||||
name="Home"
|
||||
component={HomeScreen}
|
||||
options={{ title: "" }}
|
||||
options={{ headerShown: false }}
|
||||
/>
|
||||
|
||||
{/* 其他页面默认显示标题栏 */}
|
||||
<Stack.Screen
|
||||
name="Scan"
|
||||
component={ScanScreen}
|
||||
options={{ title: "搜索设备" }}
|
||||
// options={{ title: "搜索设备" }}
|
||||
options={{ headerShown: false }}
|
||||
/>
|
||||
<Stack.Screen
|
||||
name="Info"
|
||||
component={InfoScreen}
|
||||
options={{ title: "设备详情" }}
|
||||
// options={{ title: "设备详情" }}
|
||||
options={{ headerShown: false }}
|
||||
/>
|
||||
<Stack.Screen
|
||||
name="Dfu"
|
||||
component={DfuScreen}
|
||||
options={{ title: "固件升级" }}
|
||||
// options={{ title: "固件升级" }}
|
||||
options={{ headerShown: false }}
|
||||
/>
|
||||
<Stack.Screen
|
||||
name="Privacy"
|
||||
component={PrivacyScreen}
|
||||
options={{ title: "隐私协议" }}
|
||||
// options={{ title: "隐私协议" }}
|
||||
options={{ headerShown: false }}
|
||||
/>
|
||||
<Stack.Screen
|
||||
name="Setting"
|
||||
component={SettingScreen}
|
||||
// options={{ title: "隐私协议" }}
|
||||
options={{ headerShown: false }}
|
||||
/>
|
||||
</Stack.Navigator>
|
||||
</NavigationContainer>
|
||||
|
||||
Reference in new issue
Block a user