diff --git a/scripts/run-metro.sh b/scripts/run-metro.sh index 37741881c60..55c54c90824 100755 --- a/scripts/run-metro.sh +++ b/scripts/run-metro.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash -pkill -f 'react-native start' - -react-native start --reset-cache +if pgrep -f 'react-native start' > /dev/null; then + echo "Info: metro is already running in another terminal" +else + echo "Info: starting a new metro terminal" + react-native start --reset-cache +fi