react-native-orientation-director 2.5.1 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/java/com/orientationdirector/implementation/OrientationSensorsEventListener.kt +69 -19
- package/android/src/main/java/com/orientationdirector/implementation/Utils.kt +33 -6
- package/lib/commonjs/EventEmitter.js +48 -0
- package/lib/commonjs/NativeOrientationDirector.js +8 -0
- package/lib/commonjs/RNOrientationDirector.js +126 -0
- package/lib/commonjs/hooks/useDeviceOrientation.hook.js +37 -0
- package/lib/commonjs/hooks/useInterfaceOrientation.hook.js +37 -0
- package/lib/commonjs/hooks/useIsInterfaceOrientationLocked.hook.js +27 -0
- package/lib/commonjs/index.js +51 -0
- package/lib/commonjs/module.js +22 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/types/AutoRotation.enum.js +12 -0
- package/lib/commonjs/types/Event.enum.js +13 -0
- package/lib/commonjs/types/HumanReadableAutoRotationsResource.type.js +5 -0
- package/lib/commonjs/types/HumanReadableOrientationsResource.type.js +5 -0
- package/lib/commonjs/types/LockableOrientation.type.js +5 -0
- package/lib/commonjs/types/LockedEvent.interface.js +1 -0
- package/lib/commonjs/types/Orientation.enum.js +17 -0
- package/lib/commonjs/types/OrientationEvent.interface.js +5 -0
- package/lib/commonjs/types/OrientationType.enum.js +11 -0
- package/lib/typescript/commonjs/example/src/App.d.ts +2 -0
- package/lib/typescript/commonjs/example/src/App.d.ts.map +1 -0
- package/lib/typescript/commonjs/example/src/AppNavigationContainer.d.ts +3 -0
- package/lib/typescript/commonjs/example/src/AppNavigationContainer.d.ts.map +1 -0
- package/lib/typescript/commonjs/example/src/screens/Explore.d.ts +3 -0
- package/lib/typescript/commonjs/example/src/screens/Explore.d.ts.map +1 -0
- package/lib/typescript/commonjs/example/src/screens/Home.d.ts +3 -0
- package/lib/typescript/commonjs/example/src/screens/Home.d.ts.map +1 -0
- package/lib/typescript/commonjs/example/src/screens/InnerExplore.d.ts +3 -0
- package/lib/typescript/commonjs/example/src/screens/InnerExplore.d.ts.map +1 -0
- package/lib/typescript/commonjs/example/src/screens/styles.d.ts +51 -0
- package/lib/typescript/commonjs/example/src/screens/styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/src/EventEmitter.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/NativeOrientationDirector.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/RNOrientationDirector.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hooks/useDeviceOrientation.hook.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hooks/useInterfaceOrientation.hook.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hooks/useIsInterfaceOrientationLocked.hook.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/module.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/AutoRotation.enum.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/Event.enum.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/HumanReadableAutoRotationsResource.type.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/HumanReadableOrientationsResource.type.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/LockableOrientation.type.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/LockedEvent.interface.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/Orientation.enum.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/OrientationEvent.interface.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/OrientationType.enum.d.ts.map +1 -0
- package/lib/typescript/module/example/src/App.d.ts +2 -0
- package/lib/typescript/module/example/src/App.d.ts.map +1 -0
- package/lib/typescript/module/example/src/AppNavigationContainer.d.ts +3 -0
- package/lib/typescript/module/example/src/AppNavigationContainer.d.ts.map +1 -0
- package/lib/typescript/module/example/src/screens/Explore.d.ts +3 -0
- package/lib/typescript/module/example/src/screens/Explore.d.ts.map +1 -0
- package/lib/typescript/module/example/src/screens/Home.d.ts +3 -0
- package/lib/typescript/module/example/src/screens/Home.d.ts.map +1 -0
- package/lib/typescript/module/example/src/screens/InnerExplore.d.ts +3 -0
- package/lib/typescript/module/example/src/screens/InnerExplore.d.ts.map +1 -0
- package/lib/typescript/module/example/src/screens/styles.d.ts +51 -0
- package/lib/typescript/module/example/src/screens/styles.d.ts.map +1 -0
- package/lib/typescript/module/src/EventEmitter.d.ts +11 -0
- package/lib/typescript/module/src/EventEmitter.d.ts.map +1 -0
- package/lib/typescript/module/src/NativeOrientationDirector.d.ts +17 -0
- package/lib/typescript/module/src/NativeOrientationDirector.d.ts.map +1 -0
- package/lib/typescript/module/src/RNOrientationDirector.d.ts +62 -0
- package/lib/typescript/module/src/RNOrientationDirector.d.ts.map +1 -0
- package/lib/typescript/module/src/hooks/useDeviceOrientation.hook.d.ts +8 -0
- package/lib/typescript/module/src/hooks/useDeviceOrientation.hook.d.ts.map +1 -0
- package/lib/typescript/module/src/hooks/useInterfaceOrientation.hook.d.ts +8 -0
- package/lib/typescript/module/src/hooks/useInterfaceOrientation.hook.d.ts.map +1 -0
- package/lib/typescript/module/src/hooks/useIsInterfaceOrientationLocked.hook.d.ts +7 -0
- package/lib/typescript/module/src/hooks/useIsInterfaceOrientationLocked.hook.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +12 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/lib/typescript/module/src/module.d.ts +6 -0
- package/lib/typescript/module/src/module.d.ts.map +1 -0
- package/lib/typescript/module/src/types/AutoRotation.enum.d.ts +6 -0
- package/lib/typescript/module/src/types/AutoRotation.enum.d.ts.map +1 -0
- package/lib/typescript/module/src/types/Event.enum.d.ts +7 -0
- package/lib/typescript/module/src/types/Event.enum.d.ts.map +1 -0
- package/lib/typescript/module/src/types/HumanReadableAutoRotationsResource.type.d.ts +3 -0
- package/lib/typescript/module/src/types/HumanReadableAutoRotationsResource.type.d.ts.map +1 -0
- package/lib/typescript/module/src/types/HumanReadableOrientationsResource.type.d.ts +3 -0
- package/lib/typescript/module/src/types/HumanReadableOrientationsResource.type.d.ts.map +1 -0
- package/lib/typescript/module/src/types/LockableOrientation.type.d.ts +3 -0
- package/lib/typescript/module/src/types/LockableOrientation.type.d.ts.map +1 -0
- package/lib/typescript/module/src/types/LockedEvent.interface.d.ts +4 -0
- package/lib/typescript/module/src/types/LockedEvent.interface.d.ts.map +1 -0
- package/lib/typescript/module/src/types/Orientation.enum.d.ts +11 -0
- package/lib/typescript/module/src/types/Orientation.enum.d.ts.map +1 -0
- package/lib/typescript/module/src/types/OrientationEvent.interface.d.ts +5 -0
- package/lib/typescript/module/src/types/OrientationEvent.interface.d.ts.map +1 -0
- package/lib/typescript/module/src/types/OrientationType.enum.d.ts +5 -0
- package/lib/typescript/module/src/types/OrientationType.enum.d.ts.map +1 -0
- package/package.json +32 -13
- package/plugin/build/withRNOrientationAppDelegate.d.ts +1 -1
- package/plugin/build/withRNOrientationAppDelegate.js +20 -6
- package/lib/typescript/src/EventEmitter.d.ts.map +0 -1
- package/lib/typescript/src/NativeOrientationDirector.d.ts.map +0 -1
- package/lib/typescript/src/RNOrientationDirector.d.ts.map +0 -1
- package/lib/typescript/src/hooks/useDeviceOrientation.hook.d.ts.map +0 -1
- package/lib/typescript/src/hooks/useInterfaceOrientation.hook.d.ts.map +0 -1
- package/lib/typescript/src/hooks/useIsInterfaceOrientationLocked.hook.d.ts.map +0 -1
- package/lib/typescript/src/index.d.ts.map +0 -1
- package/lib/typescript/src/module.d.ts.map +0 -1
- package/lib/typescript/src/types/AutoRotation.enum.d.ts.map +0 -1
- package/lib/typescript/src/types/Event.enum.d.ts.map +0 -1
- package/lib/typescript/src/types/HumanReadableAutoRotationsResource.type.d.ts.map +0 -1
- package/lib/typescript/src/types/HumanReadableOrientationsResource.type.d.ts.map +0 -1
- package/lib/typescript/src/types/LockableOrientation.type.d.ts.map +0 -1
- package/lib/typescript/src/types/LockedEvent.interface.d.ts.map +0 -1
- package/lib/typescript/src/types/Orientation.enum.d.ts.map +0 -1
- package/lib/typescript/src/types/OrientationEvent.interface.d.ts.map +0 -1
- package/lib/typescript/src/types/OrientationType.enum.d.ts.map +0 -1
- /package/lib/typescript/{src → commonjs/src}/EventEmitter.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/NativeOrientationDirector.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/RNOrientationDirector.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/hooks/useDeviceOrientation.hook.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/hooks/useInterfaceOrientation.hook.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/hooks/useIsInterfaceOrientationLocked.hook.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/index.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/module.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/types/AutoRotation.enum.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/types/Event.enum.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/types/HumanReadableAutoRotationsResource.type.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/types/HumanReadableOrientationsResource.type.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/types/LockableOrientation.type.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/types/LockedEvent.interface.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/types/Orientation.enum.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/types/OrientationEvent.interface.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/types/OrientationType.enum.d.ts +0 -0
- /package/lib/typescript/{package.json → module/package.json} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Home.d.ts","sourceRoot":"","sources":["../../../../../../example/src/screens/Home.tsx"],"names":[],"mappings":"AAOA,iBAAS,IAAI,4CAmHZ;AAED,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InnerExplore.d.ts","sourceRoot":"","sources":["../../../../../../example/src/screens/InnerExplore.tsx"],"names":[],"mappings":"AAMA,iBAAS,YAAY,4CAkBpB;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export declare const homepageStyle: {
|
|
2
|
+
container: {
|
|
3
|
+
flexGrow: number;
|
|
4
|
+
padding: number;
|
|
5
|
+
};
|
|
6
|
+
marginBottom: {
|
|
7
|
+
marginBottom: number;
|
|
8
|
+
};
|
|
9
|
+
buttonsContainer: {
|
|
10
|
+
flex: number;
|
|
11
|
+
justifyContent: "center";
|
|
12
|
+
};
|
|
13
|
+
text: {
|
|
14
|
+
color: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const exploreStyle: {
|
|
18
|
+
container: {
|
|
19
|
+
flexGrow: number;
|
|
20
|
+
padding: number;
|
|
21
|
+
};
|
|
22
|
+
marginBottom: {
|
|
23
|
+
marginBottom: number;
|
|
24
|
+
};
|
|
25
|
+
text: {
|
|
26
|
+
color: string;
|
|
27
|
+
};
|
|
28
|
+
body: {
|
|
29
|
+
flex: number;
|
|
30
|
+
justifyContent: "center";
|
|
31
|
+
alignItems: "center";
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export declare const innerExploreStyle: {
|
|
35
|
+
container: {
|
|
36
|
+
flexGrow: number;
|
|
37
|
+
padding: number;
|
|
38
|
+
};
|
|
39
|
+
marginBottom: {
|
|
40
|
+
marginBottom: number;
|
|
41
|
+
};
|
|
42
|
+
text: {
|
|
43
|
+
color: string;
|
|
44
|
+
};
|
|
45
|
+
body: {
|
|
46
|
+
flex: number;
|
|
47
|
+
justifyContent: "center";
|
|
48
|
+
alignItems: "center";
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../example/src/screens/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;CAexB,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;CASvB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;CAE5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventEmitter.d.ts","sourceRoot":"","sources":["../../../../src/EventEmitter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGlE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAEjE,cAAM,YAAY;IAChB,MAAM,CAAC,qCAAqC,CAC1C,QAAQ,EAAE,CAAC,WAAW,EAAE,gBAAgB,KAAK,IAAI;IAsBnD,MAAM,CAAC,wCAAwC,CAC7C,QAAQ,EAAE,CAAC,WAAW,EAAE,gBAAgB,KAAK,IAAI;IAQnD,MAAM,CAAC,wBAAwB,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI;IAItE,OAAO,CAAC,MAAM,CAAC,oCAAoC;CAwBpD;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeOrientationDirector.d.ts","sourceRoot":"","sources":["../../../../src/NativeOrientationDirector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,uBAAuB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAC3C,oBAAoB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IACxC,MAAM,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,MAAM,IAAI,IAAI,CAAC;IACf,QAAQ,IAAI,OAAO,CAAC;IACpB,mCAAmC,IAAI,IAAI,CAAC;IAO5C,qBAAqB,IAAI,OAAO,CAAC;IACjC,wBAAwB,IAAI,IAAI,CAAC;IACjC,yBAAyB,IAAI,IAAI,CAAC;IAKlC,WAAW,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C;;AAED,wBAA6E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RNOrientationDirector.d.ts","sourceRoot":"","sources":["../../../../src/RNOrientationDirector.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,gDAAgD,CAAC;AACxG,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,iDAAiD,CAAC;AAG1G,cAAM,qBAAqB;IACzB,OAAO,CAAC,MAAM,CAAC,kCAAkC,CAU7C;IAEJ,OAAO,CAAC,MAAM,CAAC,mCAAmC,CAK9C;IAEJ,4BAA4B,CAAC,QAAQ,EAAE,iCAAiC;IAIxE,6BAA6B,CAAC,QAAQ,EAAE,kCAAkC;IAI1E,MAAM,CAAC,uBAAuB,IAAI,OAAO,CAAC,WAAW,CAAC;IAItD,MAAM,CAAC,oBAAoB,IAAI,OAAO,CAAC,WAAW,CAAC;IAInD;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,MAAM,CACX,WAAW,EAAE,mBAAmB,EAChC,eAAe,GAAE,eAA2C;IAoB9D,MAAM,CAAC,MAAM;IAIb,MAAM,CAAC,QAAQ;IAIf,MAAM,CAAC,qBAAqB;IAS5B,MAAM,CAAC,mCAAmC;IAI1C,MAAM,CAAC,iCAAiC,CACtC,QAAQ,EAAE,CAAC,WAAW,EAAE,gBAAgB,KAAK,IAAI;IAKnD,MAAM,CAAC,oCAAoC,CACzC,QAAQ,EAAE,CAAC,WAAW,EAAE,gBAAgB,KAAK,IAAI;IAKnD,MAAM,CAAC,oBAAoB,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI;IAIlE,MAAM,CAAC,uCAAuC,CAAC,WAAW,EAAE,WAAW;IAMvE,MAAM,CAAC,wCAAwC,CAAC,YAAY,EAAE,YAAY;IAM1E;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,qBAAqB,CAC1B,WAAW,EAAE,WAAW,GACvB,WAAW,IAAI,mBAAmB;CAOtC;AAED,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDeviceOrientation.hook.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useDeviceOrientation.hook.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD;;;GAGG;AACH,QAAA,MAAM,oBAAoB,mBA4BzB,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useInterfaceOrientation.hook.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useInterfaceOrientation.hook.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD;;;GAGG;AACH,QAAA,MAAM,uBAAuB,mBA4B5B,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIsInterfaceOrientationLocked.hook.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useIsInterfaceOrientationLocked.hook.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,QAAA,MAAM,+BAA+B,eAiBpC,CAAC;AAEF,eAAe,+BAA+B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,OAAO,oBAAoB,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAEhC,OAAO,uBAAuB,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,uBAAuB,EAAE,CAAC;AAEnC,OAAO,+BAA+B,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,+BAA+B,EAAE,CAAC;AAE3C,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAC5D,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../src/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAA2B,MAAM,cAAc,CAAC;AAC3E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AA0BxD,eAAO,MAAM,kBAAkB,oBAAiC,CAAC;wBAErB,IAAI;AAAhD,wBAAiD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AutoRotation.enum.d.ts","sourceRoot":"","sources":["../../../../../src/types/AutoRotation.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IACtB,OAAO,IAAI;IACX,OAAO,IAAI;IACX,QAAQ,IAAI;CACb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Event.enum.d.ts","sourceRoot":"","sources":["../../../../../src/types/Event.enum.ts"],"names":[],"mappings":"AAAA,aAAK,KAAK;IACR,0BAA0B,+BAA+B;IACzD,6BAA6B,kCAAkC;IAC/D,aAAa,kBAAkB;CAChC;AAED,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HumanReadableAutoRotationsResource.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/HumanReadableAutoRotationsResource.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,MAAM,kCAAkC,GAAG,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HumanReadableOrientationsResource.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/HumanReadableOrientationsResource.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,MAAM,iCAAiC,GAAG,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LockableOrientation.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/LockableOrientation.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,MAAM,mBAAmB,GAC3B,WAAW,CAAC,QAAQ,GACpB,WAAW,CAAC,kBAAkB,GAC9B,WAAW,CAAC,aAAa,GACzB,WAAW,CAAC,cAAc,GAC1B,WAAW,CAAC,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LockedEvent.interface.d.ts","sourceRoot":"","sources":["../../../../../src/types/LockedEvent.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,OAAO,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Orientation.enum.d.ts","sourceRoot":"","sources":["../../../../../src/types/Orientation.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,OAAO,IAAI;IACX,QAAQ,IAAI;IACZ,cAAc,IAAI;IAClB,kBAAkB,IAAI;IACtB,aAAa,IAAI;IACjB,SAAS,IAAI;IACb,MAAM,IAAI;IACV,QAAQ,IAAI;CACb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrientationEvent.interface.d.ts","sourceRoot":"","sources":["../../../../../src/types/OrientationEvent.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,WAAW,CAAC;CAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrientationType.enum.d.ts","sourceRoot":"","sources":["../../../../../src/types/OrientationType.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACzB,MAAM,WAAW;IACjB,SAAS,cAAc;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../../../example/src/App.tsx"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,GAAG,4CAE1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppNavigationContainer.d.ts","sourceRoot":"","sources":["../../../../../example/src/AppNavigationContainer.tsx"],"names":[],"mappings":"AAOA,iBAAS,sBAAsB,4CA8B9B;AAED,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Explore.d.ts","sourceRoot":"","sources":["../../../../../../example/src/screens/Explore.tsx"],"names":[],"mappings":"AASA,iBAAS,OAAO,4CAwCf;AAED,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Home.d.ts","sourceRoot":"","sources":["../../../../../../example/src/screens/Home.tsx"],"names":[],"mappings":"AAOA,iBAAS,IAAI,4CAmHZ;AAED,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InnerExplore.d.ts","sourceRoot":"","sources":["../../../../../../example/src/screens/InnerExplore.tsx"],"names":[],"mappings":"AAMA,iBAAS,YAAY,4CAkBpB;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export declare const homepageStyle: {
|
|
2
|
+
container: {
|
|
3
|
+
flexGrow: number;
|
|
4
|
+
padding: number;
|
|
5
|
+
};
|
|
6
|
+
marginBottom: {
|
|
7
|
+
marginBottom: number;
|
|
8
|
+
};
|
|
9
|
+
buttonsContainer: {
|
|
10
|
+
flex: number;
|
|
11
|
+
justifyContent: "center";
|
|
12
|
+
};
|
|
13
|
+
text: {
|
|
14
|
+
color: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const exploreStyle: {
|
|
18
|
+
container: {
|
|
19
|
+
flexGrow: number;
|
|
20
|
+
padding: number;
|
|
21
|
+
};
|
|
22
|
+
marginBottom: {
|
|
23
|
+
marginBottom: number;
|
|
24
|
+
};
|
|
25
|
+
text: {
|
|
26
|
+
color: string;
|
|
27
|
+
};
|
|
28
|
+
body: {
|
|
29
|
+
flex: number;
|
|
30
|
+
justifyContent: "center";
|
|
31
|
+
alignItems: "center";
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export declare const innerExploreStyle: {
|
|
35
|
+
container: {
|
|
36
|
+
flexGrow: number;
|
|
37
|
+
padding: number;
|
|
38
|
+
};
|
|
39
|
+
marginBottom: {
|
|
40
|
+
marginBottom: number;
|
|
41
|
+
};
|
|
42
|
+
text: {
|
|
43
|
+
color: string;
|
|
44
|
+
};
|
|
45
|
+
body: {
|
|
46
|
+
flex: number;
|
|
47
|
+
justifyContent: "center";
|
|
48
|
+
alignItems: "center";
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../example/src/screens/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;CAexB,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;CASvB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;CAE5B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type EmitterSubscription } from 'react-native';
|
|
2
|
+
import type { OrientationEvent } from './types/OrientationEvent.interface';
|
|
3
|
+
import type { LockedEvent } from './types/LockedEvent.interface';
|
|
4
|
+
declare class EventEmitter {
|
|
5
|
+
static addDeviceOrientationDidChangeListener(callback: (orientation: OrientationEvent) => void): EmitterSubscription;
|
|
6
|
+
static addInterfaceOrientationDidChangeListener(callback: (orientation: OrientationEvent) => void): EmitterSubscription;
|
|
7
|
+
static addLockDidChangeListener(callback: (event: LockedEvent) => void): EmitterSubscription;
|
|
8
|
+
private static createDeviceOrientationListenerProxy;
|
|
9
|
+
}
|
|
10
|
+
export default EventEmitter;
|
|
11
|
+
//# sourceMappingURL=EventEmitter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventEmitter.d.ts","sourceRoot":"","sources":["../../../../src/EventEmitter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGlE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAEjE,cAAM,YAAY;IAChB,MAAM,CAAC,qCAAqC,CAC1C,QAAQ,EAAE,CAAC,WAAW,EAAE,gBAAgB,KAAK,IAAI;IAsBnD,MAAM,CAAC,wCAAwC,CAC7C,QAAQ,EAAE,CAAC,WAAW,EAAE,gBAAgB,KAAK,IAAI;IAQnD,MAAM,CAAC,wBAAwB,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI;IAItE,OAAO,CAAC,MAAM,CAAC,oCAAoC;CAwBpD;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { TurboModule } from 'react-native';
|
|
2
|
+
export interface Spec extends TurboModule {
|
|
3
|
+
getInterfaceOrientation(): Promise<number>;
|
|
4
|
+
getDeviceOrientation(): Promise<number>;
|
|
5
|
+
lockTo(orientation: number): void;
|
|
6
|
+
unlock(): void;
|
|
7
|
+
isLocked(): boolean;
|
|
8
|
+
resetSupportedInterfaceOrientations(): void;
|
|
9
|
+
isAutoRotationEnabled(): boolean;
|
|
10
|
+
enableOrientationSensors(): void;
|
|
11
|
+
disableOrientationSensors(): void;
|
|
12
|
+
addListener: (eventType: string) => void;
|
|
13
|
+
removeListeners: (count: number) => void;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: Spec;
|
|
16
|
+
export default _default;
|
|
17
|
+
//# sourceMappingURL=NativeOrientationDirector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeOrientationDirector.d.ts","sourceRoot":"","sources":["../../../../src/NativeOrientationDirector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,uBAAuB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAC3C,oBAAoB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IACxC,MAAM,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,MAAM,IAAI,IAAI,CAAC;IACf,QAAQ,IAAI,OAAO,CAAC;IACpB,mCAAmC,IAAI,IAAI,CAAC;IAO5C,qBAAqB,IAAI,OAAO,CAAC;IACjC,wBAAwB,IAAI,IAAI,CAAC;IACjC,yBAAyB,IAAI,IAAI,CAAC;IAKlC,WAAW,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C;;AAED,wBAA6E"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { HumanReadableOrientationsResource } from './types/HumanReadableOrientationsResource.type';
|
|
2
|
+
import { Orientation } from './types/Orientation.enum';
|
|
3
|
+
import { AutoRotation } from './types/AutoRotation.enum';
|
|
4
|
+
import { OrientationType } from './types/OrientationType.enum';
|
|
5
|
+
import type { OrientationEvent } from './types/OrientationEvent.interface';
|
|
6
|
+
import type { LockableOrientation } from './types/LockableOrientation.type';
|
|
7
|
+
import type { LockedEvent } from './types/LockedEvent.interface';
|
|
8
|
+
import type { HumanReadableAutoRotationsResource } from './types/HumanReadableAutoRotationsResource.type';
|
|
9
|
+
declare class RNOrientationDirector {
|
|
10
|
+
private static _humanReadableOrientationsResource;
|
|
11
|
+
private static _humanReadableAutoRotationsResource;
|
|
12
|
+
setHumanReadableOrientations(resource: HumanReadableOrientationsResource): void;
|
|
13
|
+
setHumanReadableAutoRotations(resource: HumanReadableAutoRotationsResource): void;
|
|
14
|
+
static getInterfaceOrientation(): Promise<Orientation>;
|
|
15
|
+
static getDeviceOrientation(): Promise<Orientation>;
|
|
16
|
+
/**
|
|
17
|
+
* Please be aware that device orientation is not the
|
|
18
|
+
* same as interface orientation.
|
|
19
|
+
*
|
|
20
|
+
* Specifically, landscape left and right are inverted:
|
|
21
|
+
*
|
|
22
|
+
* - landscapeLeft in device orientation is landscapeRight in interface orientation
|
|
23
|
+
* - landscapeRight in device orientation is landscapeLeft in interface orientation
|
|
24
|
+
*
|
|
25
|
+
* This is a behavior of the native API.
|
|
26
|
+
*
|
|
27
|
+
* When you pass an orientation value, do provide orientationType
|
|
28
|
+
* as well if the orientation value is not an interface orientation.
|
|
29
|
+
* Example: when using listenForDeviceOrientationChanges.
|
|
30
|
+
*
|
|
31
|
+
* @param orientation any lockable orientation enum value
|
|
32
|
+
* @param orientationType any orientation type enum value
|
|
33
|
+
*/
|
|
34
|
+
static lockTo(orientation: LockableOrientation, orientationType?: OrientationType): void;
|
|
35
|
+
static unlock(): void;
|
|
36
|
+
static isLocked(): boolean;
|
|
37
|
+
static isAutoRotationEnabled(): AutoRotation;
|
|
38
|
+
static resetSupportedInterfaceOrientations(): void;
|
|
39
|
+
static listenForDeviceOrientationChanges(callback: (orientation: OrientationEvent) => void): import("react-native").EmitterSubscription;
|
|
40
|
+
static listenForInterfaceOrientationChanges(callback: (orientation: OrientationEvent) => void): import("react-native").EmitterSubscription;
|
|
41
|
+
static listenForLockChanges(callback: (event: LockedEvent) => void): import("react-native").EmitterSubscription;
|
|
42
|
+
static convertOrientationToHumanReadableString(orientation: Orientation): string;
|
|
43
|
+
static convertAutoRotationToHumanReadableString(autoRotation: AutoRotation): string;
|
|
44
|
+
/**
|
|
45
|
+
* This method checks if the given orientation is lockable
|
|
46
|
+
* by interface perspective.
|
|
47
|
+
*
|
|
48
|
+
* All orientations are lockable except for unknown, faceUp
|
|
49
|
+
* and faceDown.
|
|
50
|
+
*
|
|
51
|
+
* This method is useful when you want to lock the interface
|
|
52
|
+
* orientation from a given device orientation.
|
|
53
|
+
*
|
|
54
|
+
* Example: with listenForDeviceOrientationChanges
|
|
55
|
+
*
|
|
56
|
+
* @param orientation any orientation enum value
|
|
57
|
+
* @returns true if the orientation is lockable
|
|
58
|
+
*/
|
|
59
|
+
static isLockableOrientation(orientation: Orientation): orientation is LockableOrientation;
|
|
60
|
+
}
|
|
61
|
+
export default RNOrientationDirector;
|
|
62
|
+
//# sourceMappingURL=RNOrientationDirector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RNOrientationDirector.d.ts","sourceRoot":"","sources":["../../../../src/RNOrientationDirector.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,gDAAgD,CAAC;AACxG,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,iDAAiD,CAAC;AAG1G,cAAM,qBAAqB;IACzB,OAAO,CAAC,MAAM,CAAC,kCAAkC,CAU7C;IAEJ,OAAO,CAAC,MAAM,CAAC,mCAAmC,CAK9C;IAEJ,4BAA4B,CAAC,QAAQ,EAAE,iCAAiC;IAIxE,6BAA6B,CAAC,QAAQ,EAAE,kCAAkC;IAI1E,MAAM,CAAC,uBAAuB,IAAI,OAAO,CAAC,WAAW,CAAC;IAItD,MAAM,CAAC,oBAAoB,IAAI,OAAO,CAAC,WAAW,CAAC;IAInD;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,MAAM,CACX,WAAW,EAAE,mBAAmB,EAChC,eAAe,GAAE,eAA2C;IAoB9D,MAAM,CAAC,MAAM;IAIb,MAAM,CAAC,QAAQ;IAIf,MAAM,CAAC,qBAAqB;IAS5B,MAAM,CAAC,mCAAmC;IAI1C,MAAM,CAAC,iCAAiC,CACtC,QAAQ,EAAE,CAAC,WAAW,EAAE,gBAAgB,KAAK,IAAI;IAKnD,MAAM,CAAC,oCAAoC,CACzC,QAAQ,EAAE,CAAC,WAAW,EAAE,gBAAgB,KAAK,IAAI;IAKnD,MAAM,CAAC,oBAAoB,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI;IAIlE,MAAM,CAAC,uCAAuC,CAAC,WAAW,EAAE,WAAW;IAMvE,MAAM,CAAC,wCAAwC,CAAC,YAAY,EAAE,YAAY;IAM1E;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,qBAAqB,CAC1B,WAAW,EAAE,WAAW,GACvB,WAAW,IAAI,mBAAmB;CAOtC;AAED,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Orientation } from '../types/Orientation.enum';
|
|
2
|
+
/**
|
|
3
|
+
* Hook that returns the current device orientation.
|
|
4
|
+
* It listens for orientation changes and updates the state accordingly.
|
|
5
|
+
*/
|
|
6
|
+
declare const useDeviceOrientation: () => Orientation;
|
|
7
|
+
export default useDeviceOrientation;
|
|
8
|
+
//# sourceMappingURL=useDeviceOrientation.hook.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDeviceOrientation.hook.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useDeviceOrientation.hook.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD;;;GAGG;AACH,QAAA,MAAM,oBAAoB,mBA4BzB,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Orientation } from '../types/Orientation.enum';
|
|
2
|
+
/**
|
|
3
|
+
* Hook that returns the current interface orientation.
|
|
4
|
+
* It listens for orientation changes and updates the state accordingly.
|
|
5
|
+
*/
|
|
6
|
+
declare const useInterfaceOrientation: () => Orientation;
|
|
7
|
+
export default useInterfaceOrientation;
|
|
8
|
+
//# sourceMappingURL=useInterfaceOrientation.hook.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useInterfaceOrientation.hook.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useInterfaceOrientation.hook.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD;;;GAGG;AACH,QAAA,MAAM,uBAAuB,mBA4B5B,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hook that returns whether the interface is locked.
|
|
3
|
+
* It listens for changes and updates the state accordingly.
|
|
4
|
+
*/
|
|
5
|
+
declare const useIsInterfaceOrientationLocked: () => boolean;
|
|
6
|
+
export default useIsInterfaceOrientationLocked;
|
|
7
|
+
//# sourceMappingURL=useIsInterfaceOrientationLocked.hook.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIsInterfaceOrientationLocked.hook.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useIsInterfaceOrientationLocked.hook.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,QAAA,MAAM,+BAA+B,eAiBpC,CAAC;AAEF,eAAe,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { Orientation } from './types/Orientation.enum';
|
|
2
|
+
export { AutoRotation } from './types/AutoRotation.enum';
|
|
3
|
+
export { OrientationType } from './types/OrientationType.enum';
|
|
4
|
+
import useDeviceOrientation from './hooks/useDeviceOrientation.hook';
|
|
5
|
+
export { useDeviceOrientation };
|
|
6
|
+
import useInterfaceOrientation from './hooks/useInterfaceOrientation.hook';
|
|
7
|
+
export { useInterfaceOrientation };
|
|
8
|
+
import useIsInterfaceOrientationLocked from './hooks/useIsInterfaceOrientationLocked.hook';
|
|
9
|
+
export { useIsInterfaceOrientationLocked };
|
|
10
|
+
import RNOrientationDirector from './RNOrientationDirector';
|
|
11
|
+
export default RNOrientationDirector;
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,OAAO,oBAAoB,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAEhC,OAAO,uBAAuB,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,uBAAuB,EAAE,CAAC;AAEnC,OAAO,+BAA+B,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,+BAA+B,EAAE,CAAC;AAE3C,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAC5D,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { NativeEventEmitter } from 'react-native';
|
|
2
|
+
import type { Spec } from './NativeOrientationDirector';
|
|
3
|
+
export declare const ModuleEventEmitter: NativeEventEmitter;
|
|
4
|
+
declare const _default: Spec;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../src/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAA2B,MAAM,cAAc,CAAC;AAC3E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AA0BxD,eAAO,MAAM,kBAAkB,oBAAiC,CAAC;wBAErB,IAAI;AAAhD,wBAAiD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AutoRotation.enum.d.ts","sourceRoot":"","sources":["../../../../../src/types/AutoRotation.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IACtB,OAAO,IAAI;IACX,OAAO,IAAI;IACX,QAAQ,IAAI;CACb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Event.enum.d.ts","sourceRoot":"","sources":["../../../../../src/types/Event.enum.ts"],"names":[],"mappings":"AAAA,aAAK,KAAK;IACR,0BAA0B,+BAA+B;IACzD,6BAA6B,kCAAkC;IAC/D,aAAa,kBAAkB;CAChC;AAED,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HumanReadableAutoRotationsResource.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/HumanReadableAutoRotationsResource.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,MAAM,kCAAkC,GAAG,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HumanReadableOrientationsResource.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/HumanReadableOrientationsResource.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,MAAM,iCAAiC,GAAG,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Orientation } from './Orientation.enum';
|
|
2
|
+
export type LockableOrientation = Orientation.portrait | Orientation.portraitUpsideDown | Orientation.landscapeLeft | Orientation.landscapeRight | Orientation.landscape;
|
|
3
|
+
//# sourceMappingURL=LockableOrientation.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LockableOrientation.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/LockableOrientation.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,MAAM,mBAAmB,GAC3B,WAAW,CAAC,QAAQ,GACpB,WAAW,CAAC,kBAAkB,GAC9B,WAAW,CAAC,aAAa,GACzB,WAAW,CAAC,cAAc,GAC1B,WAAW,CAAC,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LockedEvent.interface.d.ts","sourceRoot":"","sources":["../../../../../src/types/LockedEvent.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,OAAO,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Orientation.enum.d.ts","sourceRoot":"","sources":["../../../../../src/types/Orientation.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,OAAO,IAAI;IACX,QAAQ,IAAI;IACZ,cAAc,IAAI;IAClB,kBAAkB,IAAI;IACtB,aAAa,IAAI;IACjB,SAAS,IAAI;IACb,MAAM,IAAI;IACV,QAAQ,IAAI;CACb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrientationEvent.interface.d.ts","sourceRoot":"","sources":["../../../../../src/types/OrientationEvent.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,WAAW,CAAC;CAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrientationType.enum.d.ts","sourceRoot":"","sources":["../../../../../src/types/OrientationType.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACzB,MAAM,WAAW;IACjB,SAAS,cAAc;CACxB"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-orientation-director",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "A Modern React Native library that allows you to access orientation",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
6
|
+
"types": "./lib/typescript/module/src/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": {
|
|
10
|
+
"types": "./lib/typescript/module/src/index.d.ts",
|
|
11
|
+
"default": "./lib/module/index.js"
|
|
12
|
+
},
|
|
13
|
+
"require": {
|
|
14
|
+
"types": "./lib/typescript/commonjs/src/index.d.ts",
|
|
15
|
+
"default": "./lib/commonjs/index.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"./package.json": "./package.json",
|
|
19
|
+
"./app.plugin.js": "./app.plugin.js"
|
|
20
|
+
},
|
|
8
21
|
"files": [
|
|
9
22
|
"src",
|
|
10
23
|
"lib",
|
|
@@ -62,11 +75,11 @@
|
|
|
62
75
|
"@eslint/js": "^9.22.0",
|
|
63
76
|
"@evilmartians/lefthook": "^1.5.0",
|
|
64
77
|
"@react-native-community/cli": "15.0.0-alpha.2",
|
|
65
|
-
"@react-native/babel-preset": "0.
|
|
66
|
-
"@react-native/eslint-config": "
|
|
78
|
+
"@react-native/babel-preset": "0.80.0",
|
|
79
|
+
"@react-native/eslint-config": "0.80.0",
|
|
67
80
|
"@release-it/conventional-changelog": "^9.0.2",
|
|
68
81
|
"@types/jest": "^29.5.5",
|
|
69
|
-
"@types/react": "^19.
|
|
82
|
+
"@types/react": "^19.1.0",
|
|
70
83
|
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
71
84
|
"commitlint": "^19.6.1",
|
|
72
85
|
"del-cli": "^5.1.0",
|
|
@@ -76,8 +89,8 @@
|
|
|
76
89
|
"eslint-plugin-prettier": "^5.2.3",
|
|
77
90
|
"jest": "^29.7.0",
|
|
78
91
|
"prettier": "^3.0.3",
|
|
79
|
-
"react": "19.
|
|
80
|
-
"react-native": "0.
|
|
92
|
+
"react": "19.1.0",
|
|
93
|
+
"react-native": "0.80.0",
|
|
81
94
|
"react-native-builder-bob": "^0.40.10",
|
|
82
95
|
"release-it": "^17.10.0",
|
|
83
96
|
"turbo": "^1.10.7",
|
|
@@ -156,17 +169,19 @@
|
|
|
156
169
|
"output": "lib",
|
|
157
170
|
"targets": [
|
|
158
171
|
[
|
|
159
|
-
"
|
|
172
|
+
"commonjs",
|
|
160
173
|
{
|
|
161
|
-
"esm": true
|
|
174
|
+
"esm": true,
|
|
175
|
+
"sourceMaps": false
|
|
162
176
|
}
|
|
163
177
|
],
|
|
164
178
|
[
|
|
165
|
-
"
|
|
179
|
+
"module",
|
|
166
180
|
{
|
|
167
|
-
"
|
|
181
|
+
"esm": true
|
|
168
182
|
}
|
|
169
|
-
]
|
|
183
|
+
],
|
|
184
|
+
"typescript"
|
|
170
185
|
]
|
|
171
186
|
},
|
|
172
187
|
"codegenConfig": {
|
|
@@ -181,5 +196,9 @@
|
|
|
181
196
|
"languages": "kotlin-objc",
|
|
182
197
|
"type": "turbo-module",
|
|
183
198
|
"version": "0.50.2"
|
|
199
|
+
},
|
|
200
|
+
"volta": {
|
|
201
|
+
"node": "22.17.0",
|
|
202
|
+
"yarn": "3.6.1"
|
|
184
203
|
}
|
|
185
204
|
}
|