Skip to content

Commit

Permalink
Package Update
Browse files Browse the repository at this point in the history
  • Loading branch information
8BallBomBom authored Jul 17, 2020
1 parent 19f8d8a commit 569b4eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![npm downloads](https://img.shields.io/npm/dm/react-native-app-utils.svg?maxAge=2592000)](https://img.shields.io/npm/dm/react-native-app-utils.svg?maxAge=2592000)

A simple React-Native utils library with useful functions.
Currently only supporting Android.
Currently only supporting Android 4.1+, iOS might come later.

## Quick Start:
In a lot of cases if you are using the latest version of React Native then you should be able to run one of the preferred package install methods and immediately get going.
Expand Down Expand Up @@ -68,7 +68,7 @@ Utils.moveAppToBack();
If for any reason you want to keep the screen on while your app is running then you can use wake locks and screen locks. Make sure to release them if having the screen on isn't always a requirement of using your app, think about the battery usage! The first wake lock function should cause the screen to switch on, otherwise you can mix and match, try using a screen lock aswell. Last but not least you can use partial wake locks if you need the device to be alive while doing background work.
```javascript
Utils.acquireWakelock();
Utils.releaseWakeLock();
Utils.releaseWakelock();

Utils.acquirePartialWakelock();
Utils.releasePartialWakelock();
Expand All @@ -87,4 +87,4 @@ This is an experimental function that hasn't been fully implemented yet.
We will be looking to add extra functionality to this soon.
```javascript
Utils.enterPictureInPictureMode();
```
```
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-app-utils",
"version": "0.1.3",
"version": "0.1.4",
"description": "A simple React-Native utils library with useful functions.",
"nativePackage": true,
"main": "index.js",
Expand All @@ -11,6 +11,7 @@
"react native",
"utils",
"wake lock",
"wifi lock",
"screen lock",
"picture in picture"
],
Expand Down

0 comments on commit 569b4eb

Please sign in to comment.