Giter Site home page Giter Site logo

react-native-hello-world's Introduction

react-native-hello-world

A starter guide for setting up and deploying react-native on an Android device.

Environment Setup and Build https://facebook.github.io/react-native/docs/getting-started.html#content

Getting Started

  1. Ensure you've followed the React Native - Get Started Guide for the platform/s of choice
  2. Clone this project git clone https://github.com/mcnamee/react-native-starter-app.git
  3. Run npm install from root directory
  4. Prepare Device or Emulator for a deploy
  5. Run react-native -start from root directory
  6. Run react-native run-android in a new terminal from root directory.

Handy Commands

Command Output
ipconfig/all Show's the machine ip details, look for ipv4 for your ip. Useful when configuring debug server on testing device
adb start server Starts the adb server to listen for devices
adb kill server Kills the adb server
android avd Opens the Android Virtual Device app
adb devices Shows currently connected Andorid devices
android sdk Opens the Android SDK manager, useful when updating build tools
gradlew clean Cleans and rebuild your Android platform project
gradlew compileDebug --stacktrace Add stacktrace logging to gradle config
react-native -start Starts the react-native dev server
react-native run-android Builds and deployes the app to listening Android device or emulator

Troubleshooting

Error Fix
error “Could not get BatchedBridge, make sure your bundle is packaged properly” On device select Dismiss, shake device (opens Developer menu) -> Dev Settings -> Choose Debug server host & port for device (computers IP address and the port: 192.168.0.xx:8xxx, port is usually :8081)

react-native-hello-world's People

Contributors

brianjvarley avatar

Watchers

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