Skip to content

Instantly share code, notes, and snippets.

@staminaloops
Forked from kosiara/setup_howto.txt
Created February 10, 2016 16:54
Show Gist options
  • Select an option

  • Save staminaloops/02573a94cb59fdf2b1e1 to your computer and use it in GitHub Desktop.

Select an option

Save staminaloops/02573a94cb59fdf2b1e1 to your computer and use it in GitHub Desktop.

Revisions

  1. @kosiara kosiara revised this gist Sep 24, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup_howto.txt
    Original file line number Diff line number Diff line change
    @@ -42,7 +42,7 @@ Revision 09a0d98bebce-android

    > sudo react-native start
    (or
    > react-native start > /dev/null 2>&1 &
    > sudo react-native start > /dev/null 2>&1 &
    to start in the background)

    > adb reverse tcp:8081 tcp:8081
  2. @kosiara kosiara revised this gist Sep 24, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup_howto.txt
    Original file line number Diff line number Diff line change
    @@ -40,7 +40,7 @@ Revision 09a0d98bebce-android
    # In order to run the Facebook react app you need to start the JS server on the PC and forward port 8081 to the phone
    #

    > react-native start
    > sudo react-native start
    (or
    > react-native start > /dev/null 2>&1 &
    to start in the background)
  3. @kosiara kosiara revised this gist Sep 24, 2015. 1 changed file with 7 additions and 2 deletions.
    9 changes: 7 additions & 2 deletions setup_howto.txt
    Original file line number Diff line number Diff line change
    @@ -7,8 +7,10 @@ sudo npm install -g react-native-cli
    sudo ln -s /usr/bin/nodejs /usr/bin/node
    cd /home/user/your/project/path
    react-native init AwesomeProject
    cd AwesomeProject
    react-native run-android

    ==================================================
    ==================== if something goes wrong: ==============================
    check node.js version
    > node --version
    v0.10.25
    @@ -33,7 +35,10 @@ if it's below 1.0.32 upgrade your adb tools
    Android Debug Bridge version 1.0.32
    Revision 09a0d98bebce-android

    =================================================
    ====== "Unable to download JS bundle" ===========================================
    #
    # In order to run the Facebook react app you need to start the JS server on the PC and forward port 8081 to the phone
    #

    > react-native start
    (or
  4. @kosiara kosiara revised this gist Sep 24, 2015. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion setup_howto.txt
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,6 @@
    #@Bartosz Kosarzycki
    # author:
    # @Bartosz Kosarzycki
    #

    sudo apt-get install npm
    sudo npm install -g react-native-cli
  5. @kosiara kosiara revised this gist Sep 24, 2015. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions setup_howto.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    #@Bartosz Kosarzycki

    sudo apt-get install npm
    sudo npm install -g react-native-cli
    @@ -41,5 +42,3 @@ to start in the background)
    (Note that this option is available on devices running android 5.0+ (API 21).!!!)




  6. @kosiara kosiara revised this gist Sep 23, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup_howto.txt
    Original file line number Diff line number Diff line change
    @@ -38,7 +38,7 @@ Revision 09a0d98bebce-android
    to start in the background)

    > adb reverse tcp:8081 tcp:8081

    (Note that this option is available on devices running android 5.0+ (API 21).!!!)



  7. @kosiara kosiara created this gist Sep 23, 2015.
    45 changes: 45 additions & 0 deletions setup_howto.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,45 @@

    sudo apt-get install npm
    sudo npm install -g react-native-cli
    sudo ln -s /usr/bin/nodejs /usr/bin/node
    cd /home/user/your/project/path
    react-native init AwesomeProject

    ==================================================
    check node.js version
    > node --version
    v0.10.25

    if it's below 0.12 upgrade your node.js:

    sudo apt-get install -y curl
    curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
    sudo apt-get install -y nodejs

    > node --version
    v0.12.7

    =================================================

    Check your adb version:
    adb version
    Android Debug Bridge version 1.0.31

    if it's below 1.0.32 upgrade your adb tools
    > adb version
    Android Debug Bridge version 1.0.32
    Revision 09a0d98bebce-android

    =================================================

    > react-native start
    (or
    > react-native start > /dev/null 2>&1 &
    to start in the background)

    > adb reverse tcp:8081 tcp:8081