Skip to content

SiddharthSsb11/fav-places-tracker

Repository files navigation

Places Tracker

My Places is a React Native application that allows users to save their favorite places with titles, images, and addresses. Users can add new places using a form, which includes options to take a picture with the camera or choose an image from the device's gallery. Additionally, users can set the location of the place by selecting it on a map.

This is a new React Native project, bootstrapped using @react-native-community/cli.

Features

  • List of Saved Places: List of Saved Places: View a list of all the saved places with their titles, images, and addresses on the home screen.
  • Add New Place: Use the form on the second screen to add a new place to your favorites.
  • Camera Integration: Capture images for your places using the device's camera.
  • Image Picker: Choose images or click using your device's camera.
  • Location Services: Access the user's current location and mark your desired favorite place location on a map.
  • Nested Navigation
  • Custom Pressable Button Component
  • FlatList for displaying the lists of your favorite places
  • Utilizes the latest JavaScript and React features
  • Styled with React Native StyleSheet
  • Implemented using React Hooks
  • Cross-platform code for Android and iOS
  • Latest features of JavaScript i.e. ES8 is used

Few Screenshots

Getting Started

Note: Make sure you have completed the React Native - Environment Setup instructions till "Creating a new application" step, before proceeding.

Step 1: Start the Metro Server

First, you will need to start Metro, the JavaScript bundler that ships with React Native.

To start Metro, run the following command from the root of your React Native project:

# using npm
npm start

# OR using Yarn
yarn start

Demo

Step 2: Start your Application

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:

For Android

# using npm
npm run android

# OR using Yarn
yarn android

For iOS

# using npm
npm run ios

# OR using Yarn
yarn ios

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.

This is one way to run your app — you can also run it directly from within Android Studio and Xcode respectively.