Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
beasy-mobile
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
G
beasy-mobile
Commits
d3a644e4
Commit
d3a644e4
authored
Apr 26, 2024
by
G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rendering dummy tabs, acceuils, tranasactions, ...
parent
4af1c8fa
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
5 deletions
+55
-5
App.tsx
App.tsx
+7
-5
BottomTabs.tsx
src/navigations/BottomTabs.tsx
+48
-0
No files found.
App.tsx
View file @
d3a644e4
import
{
MyTabs
}
from
"@/navigations/BottomTabs"
;
import
theme
from
"@/themes/Theme"
;
import
UserLoginScreen
from
"@screens/UserLoginScreen
"
;
import
{
NavigationContainer
}
from
"@react-navigation/native
"
;
import
{
ThemeProvider
}
from
"@shopify/restyle"
;
import
{
StatusBar
}
from
"expo-status-bar"
;
import
{
StyleSheet
}
from
"react-native"
;
import
{
SafeAreaProvider
}
from
"react-native-safe-area-context"
;
export
default
function
App
()
{
return
(
<
ThemeProvider
theme=
{
theme
}
>
<
NavigationContainer
>
{
/* <View style={styles.container}> */
}
<
SafeAreaProvider
>
{
/*
<SafeAreaProvider>
<StatusBar style="auto" />
<UserLoginScreen />
</
SafeAreaProvider
>
</SafeAreaProvider> */
}
<
MyTabs
/>
{
/* </View> */
}
</
NavigationContainer
>
</
ThemeProvider
>
);
}
...
...
src/navigations/BottomTabs.tsx
0 → 100644
View file @
d3a644e4
import
{
createBottomTabNavigator
}
from
"@react-navigation/bottom-tabs"
;
import
{
View
}
from
"react-native"
;
import
Text
from
"../components/bases/Text"
;
const
Tab
=
createBottomTabNavigator
();
export
const
MyTabs
=
()
=>
{
return
(
<
Tab
.
Navigator
initialRouteName=
"Acceuil"
>
<
Tab
.
Screen
name=
"Acceuil"
component=
{
HomeScreen
}
/>
<
Tab
.
Screen
name=
"Transactions"
component=
{
Transactions
}
/>
<
Tab
.
Screen
name=
"Paramètres"
component=
{
SettingsScreen
}
/>
<
Tab
.
Screen
name=
"Profile"
component=
{
ProfileScreen
}
/>
</
Tab
.
Navigator
>
);
};
const
HomeScreen
=
()
=>
{
return
(
<
View
style=
{
{
flex
:
1
,
justifyContent
:
"center"
,
alignItems
:
"center"
}
}
>
<
Text
>
Home!
</
Text
>
</
View
>
);
};
const
Transactions
=
()
=>
{
return
(
<
View
style=
{
{
flex
:
1
,
justifyContent
:
"center"
,
alignItems
:
"center"
}
}
>
<
Text
>
Transactions!
</
Text
>
</
View
>
);
};
const
SettingsScreen
=
()
=>
{
return
(
<
View
style=
{
{
flex
:
1
,
justifyContent
:
"center"
,
alignItems
:
"center"
}
}
>
<
Text
>
Settings!
</
Text
>
</
View
>
);
};
const
ProfileScreen
=
()
=>
{
return
(
<
View
style=
{
{
flex
:
1
,
justifyContent
:
"center"
,
alignItems
:
"center"
}
}
>
<
Text
>
Profile!
</
Text
>
</
View
>
);
};
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