Check out example codes for "how to check if the game window is active in monogame". It will help you in understanding the concepts better.

Code Example 1

if (IsActive)
{
	// The game window is active (or focused).
}
else
{
	// The game window is not active.
}

Learn ReactJs, React Native from akashmittal.com