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.

Generally you’re not supposed to be able to know if a phone is rooted or not. Nor are you supposed to know what apps are installed on the phones. (At least on iOS as I understand)

There are some clever tricks you could do, but you’d need to detach and write objective-c.


Thank you for your reply. It was a great deal for me. I’m having trouble managing the timeline.