-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Project structure #20
Conversation
Additional code style and formatting rules are needed:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job!
|
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Global project structure has now been defined. Let's go through it:
screens
folder will contain all screens in the app. It is furthermore divided into flows:Onboarding
,Registration
,Profile
etc. Each such folder can contain one or multiple screens, e.g.Registration
has multiple screens:AuthenticationScreen
,InterestsScreen
,InformationScreen
. Each screen has its' own folder with two files:___Screen.tsx
andstyles.ts
. One will contain the component itself and one will contain the style sheet for that screen. It is done for convenience, since style sheets can get extensively large. Feel free to add flows and screens based on our Figma mockup, but make sure to follow the conventions.components
folder consists of re-usable components that can be re-used in more than one screen, e.g.InputField
(that will be re-used in the registration flow),LargeButton
(a large wide button to proceed),SmallButton
(you can already see many such small buttons in the Figma mockup). Each such component has its' own folder with two files - the same idea as with screens.navigation
folder will contain all navigation related items: navigation containers, stacks and tab navigators. This is where @alexandre-mrt will Set up React Navigation #9assets
folder containsimages
andcolors
. We defined a global file there to store the color definitions to not have to re-define colors each time, e.g.peach
color that represents uniconnect branding stands for#FD9890
.All in all, this will help us to structure the project files in a unified manner and will ultimately help us easily navigate over many files that will be created in the future. Please add your remarks and suggestions for further project structure improvement.