Skip to content

Instantly share code, notes, and snippets.

@derrh
Created January 7, 2020 17:07
Show Gist options
  • Save derrh/9fed68b2bea82942d682ca288d1659fa to your computer and use it in GitHub Desktop.
Save derrh/9fed68b2bea82942d682ca288d1659fa to your computer and use it in GitHub Desktop.
Device Orientation
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