You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a new [**React Native**](https://reactnative.dev) project, bootstrapped using [`@react-native-community/cli`](https://github.com/react-native-community/cli).
1
+
### Integrating React Native into the Yaku Project
2
2
3
-
# Getting Started
3
+
The Yaku project leverages React Native to develop a cross-platform mobile application, thus enabling a seamless user
4
+
experience on both iOS and Android. React Native simplifies the creation of responsive user interfaces and access to an
5
+
extensive library of components, which is crucial for providing features such as food product search, display of
6
+
nutritional information, and tracking of dietary intake. The use of React Native supports our goal of making the Yaku
7
+
application accessible to a wide audience by harnessing its ability to rapidly develop high-performing applications for
8
+
various platforms.
4
9
5
-
>**Note**: Make sure you have completed the [React Native - Environment Setup](https://reactnative.dev/docs/environment-setup) instructions till "Creating a new application" step, before proceeding.
10
+
### Used API
11
+
12
+
To retrieve information about food products, we utilize the OpenFoodTracks API. This API grants us access to a vast
13
+
database containing detailed information about food products, including their nutritional composition, ingredients,
14
+
labels, and nutritional values.
15
+
16
+
Example request to retrieve information about a specific product by its barcode:
17
+
18
+
```bash
19
+
curl -X GET "https://fr.openfoodfacts.org/api/v0/produit/[barcode].json"
20
+
```
21
+
22
+
For further information about food products, we use the OpenFoodTracks API. This API provides us access to a
23
+
comprehensive database containing detailed information about food products, including their nutritional composition,
24
+
ingredients, labels, and nutritional values. To explore the API documentation and view usage examples,
- Search for food products by name, brand, or category.
30
+
- Display detailed nutritional information for each product.
31
+
- Track daily and historical dietary intake.
32
+
- Receive suggestions for similar or alternative products.
33
+
- Create shopping lists and track food purchases.
34
+
- Technologies Used
35
+
36
+
### Technologies Used
37
+
38
+
- The Yaku project is primarily developed using modern web technologies such as React Native.
39
+
40
+
For more information about the project and its development, feel free to check out our GitHub repository and contribute
41
+
if you're interested!
6
42
7
43
## Step 1: Start the Metro Server
8
44
@@ -13,14 +49,12 @@ To start Metro, run the following command from the _root_ of your React Native p
13
49
```bash
14
50
# using npm
15
51
npm start
16
-
17
-
# OR using Yarn
18
-
yarn start
19
52
```
20
53
21
54
## Step 2: Start your Application
22
55
23
-
Let Metro Bundler run in its _own_ terminal. Open a _new_ terminal from the _root_ of your React Native project. Run the following command to start your _Android_ or _iOS_ app:
56
+
Let Metro Bundler run in its _own_ terminal. Open a _new_ terminal from the _root_ of your React Native project. Run the
57
+
following command to start your _Android_ or _iOS_ app:
24
58
25
59
### For Android
26
60
@@ -41,39 +75,3 @@ npm run ios
41
75
# OR using Yarn
42
76
yarn ios
43
77
```
44
-
45
-
If everything is set up _correctly_, you should see your new app running in your _Android Emulator_ or _iOS Simulator_ shortly provided you have set up your emulator/simulator correctly.
46
-
47
-
This is one way to run your app — you can also run it directly from within Android Studio and Xcode respectively.
48
-
49
-
## Step 3: Modifying your App
50
-
51
-
Now that you have successfully run the app, let's modify it.
52
-
53
-
1. Open `App.tsx` in your text editor of choice and edit some lines.
54
-
2. For **Android**: Press the <kbd>R</kbd> key twice or select **"Reload"** from the **Developer Menu** (<kbd>Ctrl</kbd> + <kbd>M</kbd> (on Window and Linux) or <kbd>Cmd ⌘</kbd> + <kbd>M</kbd> (on macOS)) to see your changes!
55
-
56
-
For **iOS**: Hit <kbd>Cmd ⌘</kbd> + <kbd>R</kbd> in your iOS Simulator to reload the app and see your changes!
57
-
58
-
## Congratulations! :tada:
59
-
60
-
You've successfully run and modified your React Native App. :partying_face:
61
-
62
-
### Now what?
63
-
64
-
- If you want to add this new React Native code to an existing application, check out the [Integration guide](https://reactnative.dev/docs/integration-with-existing-apps).
65
-
- If you're curious to learn more about React Native, check out the [Introduction to React Native](https://reactnative.dev/docs/getting-started).
66
-
67
-
# Troubleshooting
68
-
69
-
If you can't get this to work, see the [Troubleshooting](https://reactnative.dev/docs/troubleshooting) page.
70
-
71
-
# Learn More
72
-
73
-
To learn more about React Native, take a look at the following resources:
74
-
75
-
-[React Native Website](https://reactnative.dev) - learn more about React Native.
76
-
-[Getting Started](https://reactnative.dev/docs/environment-setup) - an **overview** of React Native and how setup your environment.
77
-
-[Learn the Basics](https://reactnative.dev/docs/getting-started) - a **guided tour** of the React Native **basics**.
78
-
-[Blog](https://reactnative.dev/blog) - read the latest official React Native **Blog** posts.
79
-
-[`@facebook/react-native`](https://github.com/facebook/react-native) - the Open Source; GitHub **repository** for React Native.
0 commit comments