Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

This library is a fork of [this library by Ken Wheeler](https://github.com/walmartreact/react-native-orientation-listener). We thank him.

###Getting Started
### Getting Started

- Run `npm install --save react-native-orientation-controller`

Expand Down Expand Up @@ -62,7 +62,7 @@ Import the library:
var Orientation = require('react-native-orientation-controller');
```

####rotate(orientation)
#### rotate(orientation)

This method will change the current orientation of the device of 90° for parameter=1, 180° for parameter=2, 270° for parameter=3 :

Expand All @@ -72,7 +72,7 @@ componentDidMount(){
}
```

####getOrientation(callback)
#### getOrientation(callback)

This method will return the current orientation of the device, the current orientation of the application, the device model and the screen size in the form of a callback:

Expand All @@ -86,7 +86,7 @@ componentDidMount(){
}
```

####addListener(callback)
#### addListener(callback)

This method will add a listener that will call the callback anytime the orientation changes:

Expand All @@ -99,7 +99,7 @@ componentDidMount(){
}
```

####removeListener(callback)
#### removeListener(callback)

This method removes the listener you added in componentDidMount:

Expand Down