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.