Git Product home page Git Product logo

react-native-redux's Introduction

Groceries

A simple grocery list app using React Native, Redux, Firebase, and Async Storage for offline data. It works on both iOS and Android.

Code Climate Dependency Status MIT License

demo

Install

Built and tested with:

  • OSX
  • Node 4.2.3 with npm 3
  • Xcode 7
  • Android SDK

A Firebase account is also needed.

Run:

git clone https://github.com/bruz/react-native-redux-groceries.git groceries
cd groceries
npm install

Configure:

cp config.js.example config.js

Edit config.js to have the URL of your Firebase app.

Develop on iOS

open ios/Groceries.xcodeproj

This will launch Xcode. Just choose a device a press run.

Develop on Android

react-native run-android

Build and install on an iOS device

  • Run:
react-native bundle --dev false --entry-file index.ios.js --platform ios --minify --bundle-output ios/main.jsbundle
  • In AppDelegate.m, comment out:
jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle"];
  • Then uncomment this in AppDelegate.m:
//jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
  • In the Xcode menu, go to Product -> Scheme -> Edit Scheme..., and under Run change the Build Configuration to Release.
  • Choose your device in Xcode and run it on there.

To get back to development mode, just undo these changes.

Build and install on an Android device

It hasn't been testing with this app, but the React Native APK signing instructions may work.

Credits

Grocery bag icon by Claire Jones from the Noun Project

react-native-redux's People

Contributors

kayluhb avatar

Watchers

 avatar  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.