Created
January 7, 2020 17:07
-
-
Save derrh/9fed68b2bea82942d682ca288d1659fa to your computer and use it in GitHub Desktop.
Device Orientation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { Orientation } from 'react-native-device-orientation'; | |
// Orientation.addSubscriber(callback: (orientation: 'portrait' | 'landscape') => {}) | |
// Orientation.removeSubscriber(callback) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment