2

As we know, there are few RN libraries, that working with device sensors. They can work with GPS, magnetometer, accelerometer, etc.

BUT I can't find any libraries, that can get device temperature( CPU, accumulator, etc ), proximity, CPU / GPU load, accumulator charge level, etc. I.e, more heavy information.

What libraries you are use to get this data ?

Especially, I'm interested for accumulator params ( charge level, temp )

mastersam
  • 21
  • 5
  • 1
    Check this post https://stackoverflow.com/questions/46714396/how-to-find-cpu-load-of-any-android-device-programmatically. Here you can get a native method, create native wrapper on this and use in react native where you want. – Aditya Feb 01 '19 at 11:34
  • By `accumulator` do you mean the battery? – 10101010 Feb 02 '19 at 17:54
  • @10101010, sure. Internal phone accumulator( battery ) – mastersam Feb 04 '19 at 09:34
  • There is probably no single react-native library which can get you all those details.https://github.com/rebeccahughes/react-native-device-info comes close. If you want more native level features, you could write android code that communicates with react-native – 10101010 Feb 04 '19 at 14:15

0 Answers0