React Native Recipe App
React Native Recipe App
This app allows users to browse through various recipes, view detailed information, and utilize
timers for recipe preparation. It also offers features like categories, ingredients lists, and a
photo gallery.
1. App.js: This is the entry point of the React Native application. It typically contains the
main component that sets up the navigation and renders the initial UI.
2. assets/: This directory stores static assets such as images, fonts, and other media used in
the app.
3. src/: Contains the source code of the application. This is where you'll find components,
screens, navigation configurations, and other logic.
4. .expo-shared/ and .expo/: These directories are related to Expo, a framework and
platform for universal React applications. They store configuration and project-specific
data for Expo.
5. babel.config.js: This file contains Babel configuration, which is used to transpile modern
JavaScript code into a format compatible with various environments.
Here's a breakdown of all the libraries installed in your React Native Recipe App, including what
each library is for and how to use it with example commands or code snippets.
2. expo-status-bar
Purpose: Customize the status bar appearance.
Usage:
import { StatusBar } from 'expo-status-bar';
3. react
Purpose: Core React library.
Usage: Used throughout the app in every component.
import React from 'react';
4. react-native
Purpose: Core framework for building native apps with React.
Usage:
import { View, Text, StyleSheet } from 'react-native';
5. @react-navigation/native
Purpose: Navigation container and core navigation utilities.
Command:
npm install @react-navigation/native
Usage:
import { NavigationContainer } from '@react-navigation/native';
<NavigationContainer>{/* Screens go here */}</NavigationContainer>
REACT NATIVE RECIPES APP
6. @react-navigation/stack
Purpose: Stack navigator (like a page stack).
Usage:
import { createStackNavigator } from '@react-navigation/stack';
7. @react-navigation/drawer
Purpose: Sidebar navigation drawer.
Usage:
import { createDrawerNavigator } from '@react-navigation/drawer';
8. react-native-gesture-handler
Purpose: Enables gesture support in navigation (must-have for React Navigation).
Usage: Place this at the top of index.js or App.js:
import 'react-native-gesture-handler';
9. react-native-reanimated
Purpose: Animations library; used with gesture-based navigation or UI.
Usage:
import Animated from 'react-native-reanimated';
10. react-native-reanimated-carousel
Purpose: A performant carousel slider.
REACT NATIVE RECIPES APP
Usage:
import Carousel from 'react-native-reanimated-carousel';
11. react-native-safe-area-context
Purpose: Handle safe area padding on devices (like notches).
Usage:
import { SafeAreaProvider, SafeAreaView } from 'react-native-safe-area-context';
12. @react-native-community/cli-server-api
Purpose: Internal API used mostly for development server in React Native CLI (not
directly used in code).