Skip to content

Commit

Permalink
feat: keep device awake
Browse files Browse the repository at this point in the history
  • Loading branch information
Harjot1Singh committed Apr 20, 2024
1 parent 800f262 commit 711b5ef
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
8 changes: 4 additions & 4 deletions config/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ export default {
package: build.bundleId,
},
plugins: [
[ 'app-icon-badge', {
enabled: !!build.banner,
badges: [ { text: build.banner, type: 'banner' } ],
} ],
'expo-router',
'expo-localization',
[ 'expo-screen-orientation', { initialOrientation: 'DEFAULT' } ],
[ 'expo-dev-launcher' ],
[ 'expo-font', { fonts } ],
[ 'app-icon-badge', {
enabled: !!build.banner,
badges: [ { text: build.banner, type: 'banner' } ],
} ],
],
experiments: {
typedRoutes: true,
Expand Down
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
"react-native-safe-area-context": "4.8.2",
"react-native-screens": "~3.29.0",
"ts-pattern": "^5.1.1",
"type-fest": "^4.15.0"
"type-fest": "^4.15.0",
"expo-keep-awake": "~12.8.2"
},
"devDependencies": {
"@babel/core": "^7.24.4",
Expand Down
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import 'expo-router/entry'
import 'react-native-gesture-handler'

import { activateKeepAwakeAsync } from 'expo-keep-awake'

import * as i18n from '~/services/i18n'

void i18n.initialize()
void activateKeepAwakeAsync()

0 comments on commit 711b5ef

Please sign in to comment.