Check out example codes for "full screen on c". It will help you in understanding the concepts better.

Code Example 1

#include <windows.h>

void fullscreen()
{
	keybd_event(VK_MENU,0x38,0,0);
	keybd_event(VK_RETURN,0x1c,0,0);
	keybd_event(VK_RETURN,0x1c,KEYEVENTF_KEYUP,0);
	keybd_event(VK_MENU,0x38,KEYEVENTF_KEYUP,0);
  //	return;
}

int main()
{
    fullscreen(); 
    return 0;
}

Learn ReactJs, React Native from akashmittal.com