From d276fff3addd378628b0bd82a9620e4502ef8f0d Mon Sep 17 00:00:00 2001 From: King Claudy Date: Wed, 5 Jul 2017 14:43:02 +0200 Subject: [PATCH] Minor markdown tweak --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index dee16cc..309b501 100644 --- a/README.md +++ b/README.md @@ -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` @@ -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 : @@ -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: @@ -86,7 +86,7 @@ componentDidMount(){ } ``` -####addListener(callback) +#### addListener(callback) This method will add a listener that will call the callback anytime the orientation changes: @@ -99,7 +99,7 @@ componentDidMount(){ } ``` -####removeListener(callback) +#### removeListener(callback) This method removes the listener you added in componentDidMount: