Something went wrong. Try again.
Prevent the phone screen from going to sleep.
Something went wrong. Try again.
1.1 kB · 33 lines
JSON
at main
12345678910111213141516171819202122232425262728293031323334{ "name": "react-native-keep-awake-example", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "cd ios && bundle install && bundle exec pod install && cd .. && react-native run-ios", "start": "react-native start", "build:android": "react-native build-android --extra-params \"--no-daemon --console=plain -PreactNativeArchitectures=arm64-v8a\"", "build:ios": "react-native build-ios --mode Debug" }, "dependencies": { "react": "19.0.0", "react-native": "0.79.2" }, "devDependencies": { "@babel/core": "^7.25.2", "@babel/preset-env": "^7.25.3", "@babel/runtime": "^7.25.0", "@react-native-community/cli": "18.0.0", "@react-native-community/cli-platform-android": "18.0.0", "@react-native-community/cli-platform-ios": "18.0.0", "@react-native/babel-preset": "0.79.2", "@react-native/metro-config": "0.79.2", "@react-native/typescript-config": "0.79.2", "@types/react": "^19.0.0", "react-native-builder-bob": "^0.40.8", "react-native-monorepo-config": "^0.1.9" }, "engines": { "node": ">=18" }}