UNPKG

react-native-orientation-bits

Version:

A react-native module that can listen on orientation changing of device, get current orientation, lock to preferred orientation.

27 lines (21 loc) 554 B
// // react-native-orientation-locker // // // Created by Wonday on 17/5/12. // Copyright (c) wonday.org All rights reserved. // "use strict"; import Orientation from './src/orientation'; export * from './src/hooks'; export * from './src/OrientationLocker'; export const OrientationType = { PORTRAIT: 'PORTRAIT', 'PORTRAIT-UPSIDEDOWN': 'PORTRAIT-UPSIDEDOWN', 'LANDSCAPE-LEFT': 'LANDSCAPE-LEFT', 'LANDSCAPE-RIGHT': 'LANDSCAPE-RIGHT', 'FACE-UP': 'FACE-UP', 'FACE-DOWN': 'FACE-DOWN', UNKNOWN: 'UNKNOWN', }; export default Orientation;