0.2.1 • Published 8 months ago

react-native-sys-metrics v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

react-native-sys-metrics

Exposes system metrics from iOS (MetrciKit) and soon Android to React Native applications.

Installation

npm install react-native-sys-metrics

Usage

import { subscribeSystemMetrics, SysMetrics } from 'react-native-sys-metrics';

// ...
subscribeSystemMetrics((metrics: SysMetrics) => {
  console.log(`got metrics: ${JSON.stringify(metrics)}`);
});
// ...

Testing

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.

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

0.2.1

8 months ago

0.2.0

8 months ago

0.1.1

8 months ago

0.1.0

12 months ago