UNPKG

react-native-debug-toolkit

Version:

A simple yet powerful debugging toolkit for React Native with a convenient floating UI for development

42 lines (37 loc) 1.31 kB
/** * React Native Debug Toolkit * A comprehensive debugging toolkit for React Native */ import DebugToolKit from './lib/DebugToolKit' import { initializeDebugToolkit, isDebugMode } from './lib' import { createNetworkFeature } from './lib/features/NetworkFeature' import { createPerformanceFeature } from './lib/features/PerformanceFeature' import { createConsoleLogFeature } from './lib/features/ConsoleLogFeature' import { createZustandLogFeature, addZustandLog } from './lib/features/ZustandLogFeature' import { createNavigationLogFeature, addNavigationLog } from './lib/features/NavigationLogFeature' import { useNavigationLogger } from './lib/hooks/useNavigationLogger' import { createTrackFeature, addTrackLog } from './lib/features/TrackFeature' // Function to clear all logs and close the panel const clearAll = () => { const instance = DebugToolKit.instance; if (instance && typeof instance.clearAll === 'function') { instance.clearAll(); } }; export { DebugToolKit, initializeDebugToolkit, createNetworkFeature, createPerformanceFeature, createConsoleLogFeature, createZustandLogFeature, addZustandLog, createNavigationLogFeature, addNavigationLog, addTrackLog, useNavigationLogger, isDebugMode, clearAll, createTrackFeature } export default DebugToolKit