import { Button, Platform, StyleSheet, Text, View } from 'react-native'; import { activate, deactivate } from '@thehale/react-native-keep-awake'; export default function App() { return ( HOW TO USE THIS DEMO 1. Turn up your screen brightness 2. Change your device display settings to dim as quickly as possible 3. Have fun using the buttons below to control whether or not your device dims/sleeps quickly! {Platform.OS === 'ios' && ( Note: On iOS, you may need to disconnect your device from XCode to see the effects )}