Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GiftReminder
Front-end
Commits
ac436b63
Commit
ac436b63
authored
11 months ago
by
Joao Pedro Lima
Browse files
Options
Download
Email Patches
Plain Diff
alterei o nome do bottom tabs na navegaçao, e função logout agr leva para a tela prelogin
parent
7dd15e62
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/(stack)/Login.tsx
+2
-2
app/(stack)/Login.tsx
app/(stack)/index.tsx
+1
-1
app/(stack)/index.tsx
app/(tabs)/profile.tsx
+2
-3
app/(tabs)/profile.tsx
with
5 additions
and
6 deletions
+5
-6
app/(stack)/Login.tsx
View file @
ac436b63
...
...
@@ -10,7 +10,7 @@ import { useNavigation } from 'expo-router';
type
RootStackParamList
=
{
signup
:
undefined
;
home
:
undefined
;
tab
:
undefined
;
prelogin
:
undefined
;
};
...
...
@@ -49,7 +49,7 @@ export default function Login() {
/>
</
View
>
<
ButtonComponent
onPress
=
{
()
=>
navigation
.
navigate
(
'
home
'
)
}
onPress
=
{
()
=>
navigation
.
navigate
(
'
tab
'
)
}
text
=
{
'
Entrar com o seu e-mail
'
}
backgroundColor
=
"#171817"
textColor
=
"white"
...
...
This diff is collapsed.
Click to expand it.
app/(stack)/index.tsx
View file @
ac436b63
...
...
@@ -35,7 +35,7 @@ const MyStack = () => {
<
Stack
.
Screen
name
=
"signup"
component
=
{
Signup
}
/>
<
Stack
.
Screen
name
=
"privacy"
component
=
{
Privacy
}
/>
<
Stack
.
Screen
name
=
"useterms"
component
=
{
UseTerms
}
/>
<
Stack
.
Screen
name
=
"
home
"
component
=
{
BottomTabNavigator
}
/>
<
Stack
.
Screen
name
=
"
tab
"
component
=
{
BottomTabNavigator
}
/>
</
Stack
.
Navigator
>
);
};
...
...
This diff is collapsed.
Click to expand it.
app/(tabs)/profile.tsx
View file @
ac436b63
import
React
from
'
react
'
;
import
{
View
,
StyleSheet
}
from
'
react-native
'
;
import
AsyncStorage
from
'
@react-native-async-storage/async-storage
'
;
import
{
useNavigation
}
from
'
@react-navigation/native
'
;
import
{
StackNavigationProp
}
from
'
@react-navigation/stack
'
;
import
ButtonComponent
from
'
@/components/buttons/ButtonComponent
'
;
type
RootStackParamList
=
{
login
:
undefined
;
pre
login
:
undefined
;
};
type
ProfileScreenNavigationProp
=
StackNavigationProp
<
RootStackParamList
>
;
...
...
@@ -17,7 +16,7 @@ const ProfileScreen = () => {
return
(
<
View
style
=
{
styles
.
container
}
>
<
ButtonComponent
onPress
=
{
()
=>
navigation
.
navigate
(
'
login
'
)
}
onPress
=
{
()
=>
navigation
.
navigate
(
'
pre
login
'
)
}
text
=
"Logout"
textColor
=
"black"
/>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment