We have a requirement to make some kind of attempt to block our app from jailbroken or rooted devices for security reasons.
This obviously can't be bullet proof, but some basic FS access checks, and searches for common rooting packages get you most of the way there.
There are already react-native libraries for this, such as https://github.com/beast/react-native-isDeviceRooted or https://github.com/GantMan/jail-monkey.
Exposing this to Javascript as a basic yes/no test would be really useful for us, and prevent us needing to detach.