status-mobile/scripts/run-metro.sh

9 lines
226 B
Bash
Executable File

#!/usr/bin/env bash
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