Skip to content

Commit 49844d3

Browse files
committed
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.
1 parent d693d68 commit 49844d3

4 files changed

Lines changed: 41 additions & 41 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div align="center">
22

3-
# react-native-keep-awake
3+
# @thehale/react-native-keep-awake
44

55
Prevent the phone screen from going to sleep.
66

@@ -15,7 +15,7 @@ Prevent the phone screen from going to sleep.
1515

1616

1717
```sh
18-
npm install react-native-keep-awake
18+
npm install @thehale/react-native-keep-awake
1919
```
2020

2121

@@ -28,7 +28,7 @@ There are three different ways you can use this library to keep a screen from go
2828
Any screen that includes the `KeepAwake` component in its tree will not go to sleep.
2929

3030
```tsx
31-
import { KeepAwake } from 'react-native-keep-awake';
31+
import { KeepAwake } from '@thehale/react-native-keep-awake';
3232

3333
function MyScreen() {
3434
return (
@@ -45,7 +45,7 @@ function MyScreen() {
4545
Invoking the `useKeepAwake` hook will prevent that screen from going to sleep.
4646

4747
```tsx
48-
import { useKeepAwake } from 'react-native-keep-awake';
48+
import { useKeepAwake } from '@thehale/react-native-keep-awake';
4949

5050
function MyScreen() {
5151
useKeepAwake()
@@ -60,7 +60,7 @@ function MyScreen() {
6060
### Manual Control
6161

6262
```tsx
63-
import { activate, deactivate } from 'react-native-keep-awake';
63+
import { activate, deactivate } from '@thehale/react-native-keep-awake';
6464

6565
function MyScreen() {
6666
return (

example/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as KeepAwake from 'react-native-keep-awake';
1+
import * as KeepAwake from '@thehale/react-native-keep-awake';
22

33
import { Button, Platform, StyleSheet, Text, View } from 'react-native';
44

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "react-native-keep-awake",
2+
"name": "@thehale/react-native-keep-awake",
33
"version": "0.1.0",
44
"description": "Prevent the phone screen from going to sleep.",
55
"main": "./lib/module/index.js",

yarn.lock

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3144,6 +3144,40 @@ __metadata:
31443144
languageName: node
31453145
linkType: hard
31463146

3147+
"@thehale/react-native-keep-awake@workspace:.":
3148+
version: 0.0.0-use.local
3149+
resolution: "@thehale/react-native-keep-awake@workspace:."
3150+
dependencies:
3151+
"@commitlint/config-conventional": ^19.6.0
3152+
"@eslint/compat": ^1.2.7
3153+
"@eslint/eslintrc": ^3.3.0
3154+
"@eslint/js": ^9.22.0
3155+
"@evilmartians/lefthook": ^1.5.0
3156+
"@react-native-community/cli": 15.0.0-alpha.2
3157+
"@react-native/babel-preset": 0.79.2
3158+
"@react-native/eslint-config": ^0.78.0
3159+
"@release-it/conventional-changelog": ^9.0.2
3160+
"@types/jest": ^29.5.5
3161+
"@types/react": ^19.0.0
3162+
commitlint: ^19.6.1
3163+
del-cli: ^5.1.0
3164+
eslint: ^9.22.0
3165+
eslint-config-prettier: ^10.1.1
3166+
eslint-plugin-prettier: ^5.2.3
3167+
jest: ^29.7.0
3168+
prettier: ^3.0.3
3169+
react: 19.0.0
3170+
react-native: 0.79.2
3171+
react-native-builder-bob: ^0.40.8
3172+
release-it: ^17.10.0
3173+
turbo: ^1.10.7
3174+
typescript: ^5.8.3
3175+
peerDependencies:
3176+
react: "*"
3177+
react-native: "*"
3178+
languageName: unknown
3179+
linkType: soft
3180+
31473181
"@tootallnate/quickjs-emscripten@npm:^0.23.0":
31483182
version: 0.23.0
31493183
resolution: "@tootallnate/quickjs-emscripten@npm:0.23.0"
@@ -10298,40 +10332,6 @@ __metadata:
1029810332
languageName: unknown
1029910333
linkType: soft
1030010334

10301-
"react-native-keep-awake@workspace:.":
10302-
version: 0.0.0-use.local
10303-
resolution: "react-native-keep-awake@workspace:."
10304-
dependencies:
10305-
"@commitlint/config-conventional": ^19.6.0
10306-
"@eslint/compat": ^1.2.7
10307-
"@eslint/eslintrc": ^3.3.0
10308-
"@eslint/js": ^9.22.0
10309-
"@evilmartians/lefthook": ^1.5.0
10310-
"@react-native-community/cli": 15.0.0-alpha.2
10311-
"@react-native/babel-preset": 0.79.2
10312-
"@react-native/eslint-config": ^0.78.0
10313-
"@release-it/conventional-changelog": ^9.0.2
10314-
"@types/jest": ^29.5.5
10315-
"@types/react": ^19.0.0
10316-
commitlint: ^19.6.1
10317-
del-cli: ^5.1.0
10318-
eslint: ^9.22.0
10319-
eslint-config-prettier: ^10.1.1
10320-
eslint-plugin-prettier: ^5.2.3
10321-
jest: ^29.7.0
10322-
prettier: ^3.0.3
10323-
react: 19.0.0
10324-
react-native: 0.79.2
10325-
react-native-builder-bob: ^0.40.8
10326-
release-it: ^17.10.0
10327-
turbo: ^1.10.7
10328-
typescript: ^5.8.3
10329-
peerDependencies:
10330-
react: "*"
10331-
react-native: "*"
10332-
languageName: unknown
10333-
linkType: soft
10334-
1033510335
"react-native-monorepo-config@npm:^0.1.8, react-native-monorepo-config@npm:^0.1.9":
1033610336
version: 0.1.9
1033710337
resolution: "react-native-monorepo-config@npm:0.1.9"

0 commit comments

Comments
 (0)