Check out example codes for "avd device reboot". It will help you in understanding the concepts better.

Code Example 1

emulator -avd my_avd -prop persist.sys.language=en -prop persist.sys.country=GB

Learn ReactJs, React Native from akashmittal.com