I\'m attempting to bridge over the Android functionality of keeping the screen on to React Native. I figured I could do this with a simple module, however I don\'t know how
For custom UI component, you can get the context in the constructor, and later you can get the activity by context.getCurrentActivity()
context.getCurrentActivity()