1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-09-16 11:51:38 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee
Files
react-native-update/Example/testHotUpdate/scripts/start-rn.sh
2023-03-18 14:43:17 +08:00

11 lines
156 B
Bash
Executable File

#!/usr/bin/env bash
trap 'kill $RN_PID' EXIT
PLATFORM=$1
npm start &
RN_PID=$!
sleep 2 && curl>/dev/null http://localhost:8081/index.bundle
wait $RN_PID