Skip to content

Commit

Permalink
version up to v1.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Wonday committed Mar 23, 2019
1 parent d65f3ce commit 7a22fed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ A react-native module that can listen on orientation changing of device, get cur

### ChangeLog

v1.1.5
add Orientation.isLocked() and Orientation.removeAllListeners()

v1.1.4
1. Fix typescript declarations

Expand Down Expand Up @@ -208,6 +211,7 @@ It can return either `PORTRAIT` `LANDSCAPE-LEFT` `LANDSCAPE-RIGHT` `UNKNOWN`

- `removeLockListener(function(orientation))`

- `removeAllListeners()`

## Functions

Expand All @@ -219,6 +223,7 @@ It can return either `PORTRAIT` `LANDSCAPE-LEFT` `LANDSCAPE-RIGHT` `UNKNOWN`
- `getOrientation(function(orientation))`
- `getDeviceOrientation(function(deviceOrientation))`
- `getAutoRotateState(function(state))` (android only)
- `isLocked()` (lock status by the library)

orientation can return one of:

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-orientation-locker",
"version": "1.1.4",
"version": "1.1.5",
"summary": "A react-native module that can listen on orientation changing of device",
"description": "A react-native module that can listen on orientation changing of device, get current orientation, lock to preferred orientation.",
"homepage": "https://github.com/wonday/react-native-orientation-locker",
Expand Down

0 comments on commit 7a22fed

Please sign in to comment.