React Native Viewer là ứng dụng macOS dùng để kiểm tra app React Native bằng giao diện desktop native, gọn và tập trung vào nhu cầu debug thực tế.
Logs: xem log console từ app React NativeNetwork: xem request, response, header và bodyCompare Text: so sánh 2 đoạn văn bảnJson Graph: trực quan hóa dữ liệu JSON dạng đồ thị
- Ứng dụng macOS native
- Giao diện và luồng làm việc tập trung cho debug React Native
- Hỗ trợ dữ liệu từ React Native DevTools và
rn_network_debugger - Phù hợp để debug hằng ngày cho app React Native
- macOS 14 trở lên
- Máy Mac dùng Apple Silicon hoặc Intel
- Xcode 26 trở lên nếu build từ source
- App React Native đã tích hợp
rn_network_debuggernếu muốn nhận dữ liệuLogsvàNetwork
- Tải file
.dmg - Mở file
.dmg - Kéo
React Native Viewer.appvào thư mụcApplications - Mở
Terminal - Chạy lệnh:
xattr -dr com.apple.quarantine "/Applications/React Native Viewer.app"- Mở
React Native Viewertừ thư mụcApplications
- Mở
React Native Viewer - Chạy app React Native của bạn
- Tích hợp và khởi động
rn_network_debuggertrong app - Kết nối app với Viewer
- Kiểm tra dữ liệu qua các tab
Logs,Network,Compare Text,Json Graph
Cài SDK:
npm install @quocandev27/rn_network_debuggerCấu hình tối thiểu:
import {bootRNNetworkDebuggerWithPort} from '@quocandev27/rn_network_debugger';
bootRNNetworkDebuggerWithPort(38940);Liên kết:
- NPM: https://www.npmjs.com/package/@quocandev27/rn_network_debugger
- SDK repo: https://github.com/DevMobileAn27/rn_network_debugger
- Mở
React Native Viewer.xcodeproj - Build bằng Xcode 26 trở lên
- Nếu cần bản phát hành, dùng
Archiveđể export app
Chạy:
xattr -dr com.apple.quarantine "/Applications/React Native Viewer.app"- Đảm bảo app React Native đang chạy
- Đảm bảo
rn_network_debuggerđã được cài và khởi động - Đảm bảo app có thể kết nối tới máy Mac đang mở Viewer
- Build lại app React Native sau khi cập nhật SDK
- Kết nối lại app với Viewer
- Kiểm tra đúng port mà Viewer đang sử dụng
Apache-2.0. Xem file LICENSE.
