Sometimes when I run my react-native app on windows using npx react-native run-android the app keeps restarting as in the image shown below.
npx react-native run-android
After fi