Daily Notes React Native, JavaScript, XCODE, android Gradle

issue

adb is the command line tool to install and run android apps on your phone/emulator.

Make sure you already have android Studio installed.

Add platform-tools to your path. Check first if you have terminal -zsh terminal, it is indicated on terminal. If you have -zsh terminal. replace all references to ~/.bash_profile with ~/.zshrc.

check if you don’t have file with name ~/.zshrc in root then create one with command

  • touch ~/.zshrc

Now run following commands in terminal

  • echo 'export ANDROID_HOME=/Users/$USER/Library/Android/sdk' >> ~/.zshrc
  • echo 'export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools' >> ~/.zshrc

Refresh your bash profile (or restart your terminal app)

  • source ~/.zshrc

Start using adb

  • adb devices

Reference: https://stackoverflow.com/questions/17901692/set-up-adb-on-mac-os-x

  • Create a file named react-native.config.js in the root folder of your project.
  • add this in that new file
  • run react-native link command in the root project path.

Reference: https://stackoverflow.com/questions/41825276/how-to-add-custom-font-in-react-native-android

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store