From 49844d3b66c71293b0c600994770280d2966753a Mon Sep 17 00:00:00 2001 From: Joseph Hale Date: Fri, 25 Jul 2025 16:17:39 -0700 Subject: [PATCH] build: add personal `thehale` namespace react-native-keep-awake is already taken on npm, so I need to namespace my package to upload it separately. --- README.md | 10 +++---- example/src/App.tsx | 2 +- package.json | 2 +- yarn.lock | 68 ++++++++++++++++++++++----------------------- 4 files changed, 41 insertions(+), 41 deletions(-) diff --git a/README.md b/README.md index 9cb1c97..e9309cb 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@
-# react-native-keep-awake +# @thehale/react-native-keep-awake Prevent the phone screen from going to sleep. @@ -15,7 +15,7 @@ Prevent the phone screen from going to sleep. ```sh -npm install react-native-keep-awake +npm install @thehale/react-native-keep-awake ``` @@ -28,7 +28,7 @@ There are three different ways you can use this library to keep a screen from go Any screen that includes the `KeepAwake` component in its tree will not go to sleep. ```tsx -import { KeepAwake } from 'react-native-keep-awake'; +import { KeepAwake } from '@thehale/react-native-keep-awake'; function MyScreen() { return ( @@ -45,7 +45,7 @@ function MyScreen() { Invoking the `useKeepAwake` hook will prevent that screen from going to sleep. ```tsx -import { useKeepAwake } from 'react-native-keep-awake'; +import { useKeepAwake } from '@thehale/react-native-keep-awake'; function MyScreen() { useKeepAwake() @@ -60,7 +60,7 @@ function MyScreen() { ### Manual Control ```tsx -import { activate, deactivate } from 'react-native-keep-awake'; +import { activate, deactivate } from '@thehale/react-native-keep-awake'; function MyScreen() { return ( diff --git a/example/src/App.tsx b/example/src/App.tsx index 935c9c0..678edad 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -1,4 +1,4 @@ -import * as KeepAwake from 'react-native-keep-awake'; +import * as KeepAwake from '@thehale/react-native-keep-awake'; import { Button, Platform, StyleSheet, Text, View } from 'react-native'; diff --git a/package.json b/package.json index e2e3f94..f87930b 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "react-native-keep-awake", + "name": "@thehale/react-native-keep-awake", "version": "0.1.0", "description": "Prevent the phone screen from going to sleep.", "main": "./lib/module/index.js", diff --git a/yarn.lock b/yarn.lock index ca22f67..0a27f24 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3144,6 +3144,40 @@ __metadata: languageName: node linkType: hard +"@thehale/react-native-keep-awake@workspace:.": + version: 0.0.0-use.local + resolution: "@thehale/react-native-keep-awake@workspace:." + dependencies: + "@commitlint/config-conventional": ^19.6.0 + "@eslint/compat": ^1.2.7 + "@eslint/eslintrc": ^3.3.0 + "@eslint/js": ^9.22.0 + "@evilmartians/lefthook": ^1.5.0 + "@react-native-community/cli": 15.0.0-alpha.2 + "@react-native/babel-preset": 0.79.2 + "@react-native/eslint-config": ^0.78.0 + "@release-it/conventional-changelog": ^9.0.2 + "@types/jest": ^29.5.5 + "@types/react": ^19.0.0 + commitlint: ^19.6.1 + del-cli: ^5.1.0 + eslint: ^9.22.0 + eslint-config-prettier: ^10.1.1 + eslint-plugin-prettier: ^5.2.3 + jest: ^29.7.0 + prettier: ^3.0.3 + react: 19.0.0 + react-native: 0.79.2 + react-native-builder-bob: ^0.40.8 + release-it: ^17.10.0 + turbo: ^1.10.7 + typescript: ^5.8.3 + peerDependencies: + react: "*" + react-native: "*" + languageName: unknown + linkType: soft + "@tootallnate/quickjs-emscripten@npm:^0.23.0": version: 0.23.0 resolution: "@tootallnate/quickjs-emscripten@npm:0.23.0" @@ -10298,40 +10332,6 @@ __metadata: languageName: unknown linkType: soft -"react-native-keep-awake@workspace:.": - version: 0.0.0-use.local - resolution: "react-native-keep-awake@workspace:." - dependencies: - "@commitlint/config-conventional": ^19.6.0 - "@eslint/compat": ^1.2.7 - "@eslint/eslintrc": ^3.3.0 - "@eslint/js": ^9.22.0 - "@evilmartians/lefthook": ^1.5.0 - "@react-native-community/cli": 15.0.0-alpha.2 - "@react-native/babel-preset": 0.79.2 - "@react-native/eslint-config": ^0.78.0 - "@release-it/conventional-changelog": ^9.0.2 - "@types/jest": ^29.5.5 - "@types/react": ^19.0.0 - commitlint: ^19.6.1 - del-cli: ^5.1.0 - eslint: ^9.22.0 - eslint-config-prettier: ^10.1.1 - eslint-plugin-prettier: ^5.2.3 - jest: ^29.7.0 - prettier: ^3.0.3 - react: 19.0.0 - react-native: 0.79.2 - react-native-builder-bob: ^0.40.8 - release-it: ^17.10.0 - turbo: ^1.10.7 - typescript: ^5.8.3 - peerDependencies: - react: "*" - react-native: "*" - languageName: unknown - linkType: soft - "react-native-monorepo-config@npm:^0.1.8, react-native-monorepo-config@npm:^0.1.9": version: 0.1.9 resolution: "react-native-monorepo-config@npm:0.1.9" -- 2.51.2