mirror of
https://gitea.tendokyu.moe/ppc/amnet.git
synced 2026-09-25 15:47:59 +03:00
29 lines
1021 B
TypeScript
29 lines
1021 B
TypeScript
import {Plus} from "lucide-react-native";
|
|
import {useTheme} from "@react-navigation/native";
|
|
import {createNativeStackNavigator} from "@react-navigation/native-stack";
|
|
|
|
import CardManager from "./CardManager";
|
|
import {TouchableOpacity} from "react-native";
|
|
|
|
const Stack = createNativeStackNavigator();
|
|
|
|
export default function CardManagerStack({navigation}) {
|
|
const theme = useTheme();
|
|
|
|
return (
|
|
<Stack.Navigator screenOptions={{
|
|
headerLargeTitle: true,
|
|
headerBlurEffect: "regular",
|
|
headerStyle: {
|
|
backgroundColor: theme.colors.background,
|
|
}
|
|
}}>
|
|
<Stack.Screen name="card-listing"
|
|
component={CardManager}
|
|
options={{
|
|
title: "Cards",
|
|
headerRight: () => <TouchableOpacity onPress={() => navigation.navigate('add-card')}><Plus/></TouchableOpacity>
|
|
}}/>
|
|
</Stack.Navigator>
|
|
);
|
|
} |