Skip to content

Commit

Permalink
fix:An error when use OrientationType in typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
NiuGuohui authored Oct 12, 2021
1 parent 135fc39 commit 61807e3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,14 @@ 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;

0 comments on commit 61807e3

Please sign in to comment.