Check out example codes for "Five nights at freddy's". It will help you in understanding the concepts better.

Code Example 1

fnaf at freddys thats where i want to be fnaf at freddys

Learn ReactJs, React Native from akashmittal.com