Code Monkey home page Code Monkey logo

doorlock's Introduction

Steps to the final project

Introduction

Installing react native using react init. It is used when you want to test on physical device

react-native init --version="0.55.4" DoorLock

Checking connected devices

Checking connected device you must have installed SDK and JDK. And you need to go to the path where the platform-tools are installed, and your run the following command

C:\Users\Gakwandi Joshua\AppData\Local\Android\sdk\platform-tools/> adb devices

Connecting to servers

This is how you iterate quickly on a device by connecting to the development server running on your development machine.

C:\Users\username\AppData\Local\Android\sdk\platform-tools\>adb reverse tcp:8081 tcp:8081

Running on android device

When running react on your android you go inside your folder is where your project is installed. Then type the following command

C:\Users\username\myproject/>npm start |yarn start
C:\Users\username\myproject/> react-native run-android

Some errors when running may occur Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.

To solve the following error 1.You go inside the project folder 2.Android folder 3.Create file called local.properties 4. Write sdk.dir = C:\Users\username\AppData\Local\Android\sdk 5. Run your react-native run-android

doorlock's People

Contributors

gakwandi avatar

Watchers

Emery Muhozi 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.