Как отлаживать нативный код в React Native?
iOS:
- Xcode: breakpoints, View Hierarchy debugger, Instruments
- Instruments: Time Profiler, Allocations, Leaks, Network
Android:
- Android Studio: breakpoints, Layout Inspector, Android Profiler
- Logcat:
adb logcat | grep "ReactNative" - Memory Profiler, CPU Profiler
Общее:
- Нативные крэши не видны в JS-дебаггере
- Source maps нужны для маппинга Hermes bytecode → исходный код
- Flipper (устаревший, но всё ещё используется) / Reactotron