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

Code Example 1

int SDL_SetWindowFullscreen(SDL_Window* window,
                            Uint32      flags)

Learn ReactJs, React Native from akashmittal.com