Not out of the box. And it is more a stackoverflow question: https://stackoverflow.com/questions/3703071/how-to-hook-into-the-power-button-in-android
But I have not yet found anything for IOS. Only for the volume buttons: https://github.com/Kennytian/react-native-volume-control
So this will not be easy.
Regards,
Ronald