react-native-performance-monitor

Get memory, CPU usage and FPS

Installation

npm install @panda-tool/react-native-performance-monitor

Usage

import {
    startMonitoring,
    stopMonitoring,
    type PerformanceData,
} from '@panda-tool/react-native-performance-monitor';

// ...

const [performanceData, setPerformanceData] = useState<PerformanceData>();

useEffect(() => {
startMonitoring((data) => {
    setPerformanceData(data);
});

return () => {
    stopMonitoring();
};
}, []);

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library