Skip to content

Commit 07c9252

Browse files
committed
information page added
1 parent 355e7d2 commit 07c9252

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

Random-Generator/app/(tabs)/_layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default function TabLayout() {
3232
title: 'HOME',
3333
tabBarIcon: ({ color }) => <TabBarIcon name="home" color={color} />,
3434
headerRight: () => (
35-
<Link href="/modal" asChild>
35+
<Link href="/information" asChild>
3636
<Pressable>
3737
{({ pressed }) => (
3838
<FontAwesome

Random-Generator/app/_layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function RootLayoutNav() {
5151
<ThemeProvider value={colorScheme === 'dark' ? DarkTheme : DefaultTheme}>
5252
<Stack>
5353
<Stack.Screen name="(tabs)" options={{ headerShown: false }} />
54-
<Stack.Screen name="modal" options={{ presentation: 'modal' }} />
54+
<Stack.Screen name="information" options={{ presentation: 'modal' }} />
5555
</Stack>
5656
</ThemeProvider>
5757
);

Random-Generator/app/modal.tsx renamed to Random-Generator/app/information.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
import { StatusBar } from 'expo-status-bar';
22
import { Platform, StyleSheet } from 'react-native';
33

4-
import EditScreenInfo from '@/components/EditScreenInfo';
54
import { Text, View } from '@/components/Themed';
65

76
export default function ModalScreen() {
87
return (
98
<View style={styles.container}>
10-
<Text style={styles.title}>Modal</Text>
9+
<Text style={styles.title}>Thank you for using this APP</Text>
1110
<View style={styles.separator} lightColor="#eee" darkColor="rgba(255,255,255,0.1)" />
12-
<EditScreenInfo path="app/modal.tsx" />
1311

1412
{/* Use a light status bar on iOS to account for the black space above the modal */}
1513
<StatusBar style={Platform.OS === 'ios' ? 'light' : 'auto'} />

0 commit comments

Comments
 (0)