如何在 React Native 中跟踪应用程序的使用时间?

lee*_*ter 6 android react-native react-native-native-module

我想在 React Native 中跟踪用户的总体应用程序使用时间(其他应用程序)。

我发现android.app.usage可以准确跟踪我想要的内容。

是否可以在 React Native 中使用“android.app.usage”?或者我是否必须为 React Native 制作自己的本机模块?

提前致谢!