From 6a06ba2ed35758963adc6a0bee3eef1e6e2dec5d Mon Sep 17 00:00:00 2001 From: "David Narbutovich(g)" Date: Thu, 29 Nov 2018 10:50:51 +0300 Subject: [PATCH] Update lock-device-orientation.mo.md You are recommending an unsupported library! --- react-native/features/lock-device-orientation.mo.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/react-native/features/lock-device-orientation.mo.md b/react-native/features/lock-device-orientation.mo.md index 73b7bde..e585bbd 100644 --- a/react-native/features/lock-device-orientation.mo.md +++ b/react-native/features/lock-device-orientation.mo.md @@ -7,7 +7,7 @@ ## Steps -- Follow [this](https://github.com/yamill/react-native-orientation/blob/master/README.md) to install react-native-orientation +- Follow [this](https://github.com/wonday/react-native-orientation-locker#installation) to install react-native-orientation-locker > :warning: Do not forget to rebuild your app @@ -17,11 +17,11 @@ We need to lock all the app pages, to do so import react-native-orientation in our top component: -`import Orientation from 'react-native-orientation` +`import Orientation from 'react-native-orientation-locker';` Add those lines to lock the orientation: -``` +```js componentWillMount () { Orientation.lockToPortrait() } @@ -29,4 +29,4 @@ componentWillMount () { - Refresh your app, and try to rotate your screen -- [Star the repo](https://github.com/yamill/react-native-orientation) if it works ;) +- [Star the repo](https://github.com/wonday/react-native-orientation-locker) if it works ;)