RN Logs Skill
Check React Native console logs from the running Diana app.
Steps
- •
Determine which Metro port your app is using (default: 8081, but could be 8082, 8083, etc.)
- •
Check if the log collector is running for that port:
bashpgrep -f "rn-logs.js.*--port=8081"
- •
If not running, start it with the correct port:
bashnode ~/.claude/skills/rn-logs/rn-logs.js --port=8081 &
- •
Read recent logs (use the port-specific file):
bashtail -50 /tmp/rn-logs-8081.txt
- •
To search for specific logs:
bashgrep "pattern" /tmp/rn-logs-8081.txt
Log Format
code
[timestamp] [type] message
Types: log, warn, error, info
Notes
- •Each Metro port gets its own log file:
/tmp/rn-logs-{PORT}.txt - •The collector auto-reconnects when the app reloads
- •Default port is 8081 if not specified
- •Script location:
~/.claude/skills/rn-logs/rn-logs.js