Giter VIP home page Giter VIP logo

reactnativetodo's Introduction

ReactNativeTodo

A simple,,,, todo ๐Ÿ’ผ

Screenshots

Todo List Add Todo Settings Panel

Installation & run

Run the app with live reload:

  • Open ios > reactNativeTodo.xcodeproj, then:
  • Search for 8081 in the project, and change the IP address to another.
    • If you run the App in a real phone, make sure your phone are in the same network with your computer, and change the IP to your computers' one.
    • If you run the App in a simulator, change the IP to localhost (WIFI IP address may not work).
  • cd server and ./app.js to start the API service, please make sure you have NodeJS and MongoDB installed.
  • Open app > network > API.js with your prefered editor, change the SERVER_PREFIX to your API service endpoint.
    • Again, localhost if you are running the App in a simulator, WIFI IP if you are connected to your phone with a wifi hotspot.
  • Select the project name in the Project Explorer (Xcode 7 and above),
    • then click Build Settings in the right panel,
    • search in below input box for dead,
    • Find Dead Code Stripping, switch it to No.
  • Click Run in the Xcode!

Run the App standalone (you may need to do all the steps above):

Run react-native bundle --minify in the root directory.

  • Open ios > reactNativeTodo.xcodeproj
  • Right click the project in Project Navigator, select Add files to reactNativeTodo, find ios/main.jsbundle, OK.
  • Open reactNativeTodo > AppDelegate.m
    • Comment jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle"];
    • Uncomment jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
  • Click Run in the Xcode!

reactnativetodo's People

Contributors

rankun203 avatar

Stargazers

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