![](https://private-user-images.githubusercontent.com/88680118/253817524-2255380c-855a-47a3-a306-3b36aea86697.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4NzYwNjIsIm5iZiI6MTcyMzg3NTc2MiwicGF0aCI6Ii84ODY4MDExOC8yNTM4MTc1MjQtMjI1NTM4MGMtODU1YS00N2EzLWEzMDYtM2IzNmFlYTg2Njk3LmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE3VDA2MjI0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU4ODQ0MTIzYTczNTcxNzBhMTVhYzk4ZDcxMjQxZjI5N2ZiNWY3MDg1ZTI3MWIyMDhiZGE5YTk0NzQ0ZWRmNTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.fjqlQsPiVfhipnOmChSwxoA-3IvoptBO9vgihsMYHAQ)
![](https://private-user-images.githubusercontent.com/88680118/253817567-0945044b-8133-4e31-9430-be28e17f5553.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4NzYwNjIsIm5iZiI6MTcyMzg3NTc2MiwicGF0aCI6Ii84ODY4MDExOC8yNTM4MTc1NjctMDk0NTA0NGItODEzMy00ZTMxLTk0MzAtYmUy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ZiNWYwZWNiMWU1YzRhNzlhMWVhOGY0ZmIzMTYwNmUyMmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.9SLbm0TVxjkEnbowtbwFsmzOxiK34H_pYkb8mYRLq1U)
![](https://private-user-images.githubusercontent.com/88680118/253817590-4aaaed73-2175-4bad-ab37-c17e60e31d04.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4NzYwNjIsIm5iZiI6MTcyMzg3NTc2MiwicGF0aCI6Ii84ODY4MDExOC8yNTM4MTc1OTAtNGFhYWVkNzMtMjE3NS00YmFkLWFiMzctYzE3ZTYwZTMxZDA0LmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE3VDA2MjI0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTkzNzQ3ZjUyNDk2ZGI1ODlhNDM5MjU4MjRjMGJjMTFlODE0YmZkNGI1NmViZDVmZjYxNWMwM2EyOGZmNmE2NTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.BDFZPhgrnbVcJxLLXU52_3gNttrx92RFu4wbBlNJsek)
![](https://private-user-images.githubusercontent.com/88680118/253817599-ed4141db-49e0-4795-8b1b-caa2887b5f63.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4NzYwNjIsIm5iZiI6MTcyMzg3NTc2MiwicGF0aCI6Ii84ODY4MDExOC8yNTM4MTc1OTktZWQ0MTQxZGItNDllMC00Nzk1LThiMWItY2FhMjg4N2I1ZjYzLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE3VDA2MjI0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc0YTY1YzMyZTVlMjJhM2NhOTVjZDA2NDJhMzczOWE0N2QxY2E1NDZhZDhiZWVlZGViNWRjYzU1YmQ3OGE5MGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.-AO69RFeaHdVuxEKddTUV0MbyA92i_0zz-Qm4_KECl8)
![](https://private-user-images.githubusercontent.com/88680118/253817615-e042bd15-3464-4397-8ea9-9392d7e5f2e1.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4NzYwNjIsIm5iZiI6MTcyMzg3NTc2MiwicGF0aCI6Ii84ODY4MDExOC8yNTM4MTc2MTUtZTA0MmJkMTUtMzQ2NC00Mzk3LThlYTktOTM5MmQ3ZTVmMmUxLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4M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MHQrZ78-IJEAci1-kcWLxZ56Q7BE-ifhfEvm4-3A)
![](https://private-user-images.githubusercontent.com/88680118/253817637-25a55f8d-7831-45ea-ba45-ddedefb51a68.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4NzYwNjIsIm5iZiI6MTcyMzg3NTc2MiwicGF0aCI6Ii84ODY4MDExOC8yNTM4MTc2MzctMjVhNTVmOGQtNzgzMS00NWVhLWJhNDUtZGRlZGVmYjUxYTY4LmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE3VDA2MjI0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY1MTQ4MzAyNTRmNjE4MGMwMDU0ZWNkMDEzMmEyYjkwY2E4N2MzNzY5NmZmZDcyMWE3ODI1YzBmYTgwZmRiYjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Lpy9S7zICmlZ2XzjqWBkEmEC3PXvx-skF7_uomaujag)
Daily Diet is a mobile application to control your diet. In it you can register your meals and follow your progress.
With this application, you can register a new meal at a specific date and time, informing whether or not it is in your diet. It is also possible to view the details of each meal, as well as edit and delete your already registered meals. In addition, the application provides you with a follow-up of your diet, providing feedback through some statistics and metrics based on the meals already registered, such as the best sequence of meals within the diet, percentage of meals in the diet, among other information.
The project was developed using these technologies:
- TypeScript
- React Native
- Expo Managed Workflow
- NativeWind (library to use TailwindCSS in React Native)
- React Navigation (stack navigation)
- Async Storage (used to local storage of meals)
- React Hook Form
- Zod
Finally, this project was a challenge developed in the React Native training in Rocketseat Ignite course. The main purpose of this app was to practice styling, navigation and local storage, as well as some React Hooks and techniques, and good coding practices.
Access the project layout in Figma
- Requirements:
- Clone the repository:
git clone https://github.com/luismda/daily-diet.git
- Install the dependencies:
npm i
- Run app:
npm start
- To preview the app, you can use Expo Go on your physical device or use an Android or iPhone emulator on your computer. See some more details in the React Native and Expo documentation.
A good starting point to get to know the project better is to look at the code, so you can start with the screens
folder, where all the project's screens are located. In the routes
folder, you will also find all the routes defined in the app.
All components were created inside the components
folder. You will notice that some of them have more than one file for the same component. This happens because of the Composition Pattern, which was used in some cases.
Finally, in the storage
folder you will find the functions that handle Async Storage and handle local read and write operations. It is important to highlight that the key used to store the meals is defined in the constants folder.
Luรญs Miguel | LinkedIn
#NeverStopLearning ๐