Exposes system metrics from iOS (MetrciKit) and soon Android to React Native applications.
npm install react-native-sys-metrics
import { subscribeSystemMetrics, SysMetrics } from 'react-native-sys-metrics';
// ...
subscribeSystemMetrics((metrics: SysMetrics) => {
console.log(`got metrics: ${JSON.stringify(metrics)}`);
});
// ...
You can test that your app handles the MetricKit payload by running your app in XCode on a real device and then selecting "Simulate MetricKit Payloads" from XCode's debug menu.
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library