menu

React Native - Install React Native dengan Brew pada ubuntu


== CARA INSTALL REACT-NATIVE


  1. Install Brew
    • sudo apt-get install build-essential curl git python-setuptools ruby
    • ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/linuxbrew/go/install)"
    • tambah pada .bashrc >>
      • export PATH="$HOME/.linuxbrew/bin:$PATH"
      • export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"
      • export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"
  2. Install react-native menggunakan brew
    • brew install node
    • brew install watchman
    • brew install -g react-native-cli
== DONE!!!
HOW?
  1. To run
    • react-native start
  2. To build
    • react-native init (nama project)
  3. To stop
    • Ctrl + c
WHY?
  1. can't found command brew?
    • tambah pada .bashrc (lihat diatas)

---Semoga Membantu---