'react native:how to understand device is rooted?

I want to know if the device has been rooted, or not? I looked at react native library as well as the expo and did not find anything.

Also I want to have a list of installed apps on the phone.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source