Check for root user on mobile devices

0
Hi, Is it possible to check whether a device is rooted or not when running your native mobile application? I searched the forum, but didn’t find any question related to this and the Native common module doesn’t contain a ready made block that contains this functionality. I want to app to display a notification if the device is rooted and inform the user (s)he cannot use it. If a notification is not possible, not being able to run the app would be the minimal requirement. There are of course ways to do this when coding your own application, but I was wondering if there are ready made codeblocks available in the community. Thanks!
asked
1 answers
0

I believe there are no ready made components, but i could be wrong.

You could implement something like this: https://github.com/reactspace/react-native-root-detection 

answered