Check out example codes for "bash: apt-add-repository: command not found". It will help you in understanding the concepts better.

Code Example 1

apt-get install software-properties-common

Code Example 2

sudo apt-get install software-properties-common
sudo apt-get update

Learn ReactJs, React Native from akashmittal.com