Check out example codes for "battle cats challenge battle". It will help you in understanding the concepts better.

Code Example 1

This is just battle cats

Game.Battle_Cats/~App.store;

Learn ReactJs, React Native from akashmittal.com