Check out example codes for "fix sqlite3 ruby on rails". It will help you in understanding the concepts better.
Code Example 1
Edit The Gemfile And Delete The Line That Says
gem 'sqlite3'
And Replace It With
gem 'sqlite3', '< 1.4'
Then It Will Work
Learn ReactJs, React Native from akashmittal.com