From 3eb5117d989f491ba5fd7ddb44d23f4fb9f32bc9 Mon Sep 17 00:00:00 2001 From: Joseph Hale Date: Fri, 25 Jul 2025 20:41:30 -0700 Subject: [PATCH] chore: Update `react-native-keep-awake` The version by sayem stopped working correctly with the latest React Native version. And from the git history/issue discussion, he's not super active at maintaining the package anymore. So, I rewrote it myself this afternoon on the new architecture to integrate here. --- App.tsx | 2 +- package-lock.json | 25 ++++++++++++++----------- package.json | 2 +- 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/App.tsx b/App.tsx index bf9be25..490aea3 100644 --- a/App.tsx +++ b/App.tsx @@ -6,7 +6,7 @@ import BinaryClockScreen from './src/pages/BinaryClockScreen'; import BootSplash from 'react-native-bootsplash'; -import KeepAwake from '@sayem314/react-native-keep-awake'; +import { KeepAwake } from '@thehale/react-native-keep-awake'; import React from 'react'; import { StatusBar } from 'react-native'; diff --git a/package-lock.json b/package-lock.json index 4823673..728b66b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.2.0", "dependencies": { "@react-native-community/slider": "^4.5.7", - "@sayem314/react-native-keep-awake": "^1.3.1", + "@thehale/react-native-keep-awake": "^0.2.0", "babel-plugin-react-compiler": "^19.1.0-rc.2", "lodash": "^4.17.21", "react": "19.1.0", @@ -3661,16 +3661,6 @@ } } }, - "node_modules/@sayem314/react-native-keep-awake": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/@sayem314/react-native-keep-awake/-/react-native-keep-awake-1.3.1.tgz", - "integrity": "sha512-gAqLCVQ2SgrMki9MZJzQiYn9EjOGDYze+dYKs7s7T4qfRrUxCK8Pe50mE0Y/WQqzaYY6uzdjTHzmWhACiEy5Zw==", - "license": "MIT", - "funding": { - "type": "individual", - "url": "https://github.com/sponsors/sayem314" - } - }, "node_modules/@sideway/address": { "version": "4.1.5", "resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.5.tgz", @@ -3719,6 +3709,19 @@ "@sinonjs/commons": "^3.0.0" } }, + "node_modules/@thehale/react-native-keep-awake": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@thehale/react-native-keep-awake/-/react-native-keep-awake-0.2.0.tgz", + "integrity": "sha512-Mb22Gs7t7Cq57+RKTtAxhwO+kHSaHwXXx0GS9Tx9cynpHGHZwBBmivNnLpTYYmX46YooGt3mIiDMWerbisn7lw==", + "license": "MPL-2.0", + "workspaces": [ + "example" + ], + "peerDependencies": { + "react": "*", + "react-native": "*" + } + }, "node_modules/@types/babel__core": { "version": "7.20.5", "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", diff --git a/package.json b/package.json index b05ac7f..ec0eec2 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ }, "dependencies": { "@react-native-community/slider": "^4.5.7", - "@sayem314/react-native-keep-awake": "^1.3.1", + "@thehale/react-native-keep-awake": "^0.2.0", "babel-plugin-react-compiler": "^19.1.0-rc.2", "lodash": "^4.17.21", "react": "19.1.0", -- 2.51.2