Check out example codes for "pod install ruby: bad interpreter: No such file or directory". It will help you in understanding the concepts better.

Code Example 1

sudo gem install cocoapods

Learn ReactJs, React Native from akashmittal.com