tiefen_space_app/screeens/GuildVerification/index.jsx

64 lines
2.0 KiB
JavaScript

import React from "react";
import { Text, TouchableOpacity } from "react-native";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import AfterSubmitGuildVerification from "./AfterSubmitGuildVerification";
import JoinGuild from "./JoinGuild";
import { Icon } from "@rneui/themed";
const GuildVerificationStack = createNativeStackNavigator();
export default function GuildVerification() {
return (
<GuildVerificationStack.Navigator>
<GuildVerificationStack.Screen
name="JoinGuild"
component={JoinGuild}
options={({ navigation }) => ({
headerLeft: () => (
<Icon
type="ionicon"
name="chevron-back"
size={32}
color="white"
onPress={() => navigation.goBack()}
/>
),
headerRight: () => (
<TouchableOpacity
onPress={() =>
navigation.navigate("WebWithHeader", {
title: "公会入驻",
uri: `${process.env.EXPO_PUBLIC_WEB_URL}/doc/platformguidelines`,
})
}
>
<Text style={{ color: "#FF669E", fontSize: 16 }}>平台准则</Text>
</TouchableOpacity>
),
title: "公会入驻",
headerTitleStyle: { color: "white" },
headerStyle: { backgroundColor: "#07050A" },
})}
/>
<GuildVerificationStack.Screen
name="AfterSubmitGuildVerification"
component={AfterSubmitGuildVerification}
options={({ navigation }) => ({
headerLeft: () => (
<Icon
type="ionicon"
name="chevron-back"
size={32}
color="white"
onPress={() => navigation.goBack()}
/>
),
title: "提交成功",
headerTitleStyle: { color: "white" },
headerStyle: { backgroundColor: "#07050A" },
})}
/>
</GuildVerificationStack.Navigator>
);
}