Giter VIP home page Giter VIP logo

address-book's Introduction

ADDRESS BOOK

React Native application that searches for an address and displays it on a map. Addresses can be saved to a favorites list that can quickly be referenced later.

Animated Gif Android Screenshot Android Screenshot

Setup

Prerequisites

Follow the React Native CLI Quickstart prerequisite instructions located here. You will need Node, TypeScript, Watchman, React Native command line interface, Xcode, CocoaPods, JDK 8, Android Studio and the Android SDK.

Environment Variables

Create a file named .env and add your Google Maps API key. Enable Maps SDK for Android, Maps SDK for iOS and Geocoding API for your Google Cloud Project. You must enable billing on your Google API key to run more than one geocode request.

GOOGLE_MAPS_API_KEY=YOUR_KEY_HERE

Running the App

Install dependencies:

npm install
cd ios
pod install
cd ..

Use the following commands to start up the app on your emulator or device:

Android

react-native run-android

iOS

react-native run-ios

Reloading the App

In the Android emulator, tap rr to reload. On an Android device, shake the device forward and backward a couple of times to display the menu. Tap Reload. Enable Live Reload from the menu to automatically update the app when changes are made.

NOTE: When changing platform specific properties, you will still need to restart the local server.

VS Code Configuration

If you're using VS Code, add the following to your workspace settings to remove TypeScript warnings.

{
    "javascript.validate.enable": false
}

Resources

React Navigation

https://reactnavigation.org/docs/en/getting-started.html#installation

React Native Config

This library is used to hide environment variables like the Google Maps API key.

https://github.com/luggit/react-native-config

React Native Maps

https://github.com/react-native-community/react-native-maps

SQLite

https://brucelefebvre.com/blog/2018/11/06/react-native-offline-first-db-with-sqlite/

Podfile Setup

http://facebook.github.io/react-native/docs/integration-with-existing-apps

Offline First Storage Options

https://www.simform.com/react-native-database-selection-guide/

address-book's People

Contributors

blackcj avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.