react-native-orientation-director 2.5.1 → 2.6.1

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.
Files changed (136) hide show
  1. package/README.md +22 -12
  2. package/android/src/main/java/com/orientationdirector/implementation/OrientationDirectorModuleImpl.kt +24 -35
  3. package/android/src/main/java/com/orientationdirector/implementation/OrientationSensorsEventListener.kt +69 -19
  4. package/android/src/main/java/com/orientationdirector/implementation/Utils.kt +36 -28
  5. package/lib/commonjs/EventEmitter.js +48 -0
  6. package/lib/commonjs/NativeOrientationDirector.js +8 -0
  7. package/lib/commonjs/RNOrientationDirector.js +126 -0
  8. package/lib/commonjs/hooks/useDeviceOrientation.hook.js +37 -0
  9. package/lib/commonjs/hooks/useInterfaceOrientation.hook.js +37 -0
  10. package/lib/commonjs/hooks/useIsInterfaceOrientationLocked.hook.js +27 -0
  11. package/lib/commonjs/index.js +51 -0
  12. package/lib/commonjs/module.js +22 -0
  13. package/lib/commonjs/package.json +1 -0
  14. package/lib/commonjs/types/AutoRotation.enum.js +12 -0
  15. package/lib/commonjs/types/Event.enum.js +13 -0
  16. package/lib/commonjs/types/HumanReadableAutoRotationsResource.type.js +5 -0
  17. package/lib/commonjs/types/HumanReadableOrientationsResource.type.js +5 -0
  18. package/lib/commonjs/types/LockableOrientation.type.js +5 -0
  19. package/lib/commonjs/types/LockedEvent.interface.js +1 -0
  20. package/lib/commonjs/types/Orientation.enum.js +17 -0
  21. package/lib/commonjs/types/OrientationEvent.interface.js +5 -0
  22. package/lib/commonjs/types/OrientationType.enum.js +11 -0
  23. package/lib/typescript/commonjs/example/src/App.d.ts +2 -0
  24. package/lib/typescript/commonjs/example/src/App.d.ts.map +1 -0
  25. package/lib/typescript/commonjs/example/src/AppNavigationContainer.d.ts +3 -0
  26. package/lib/typescript/commonjs/example/src/AppNavigationContainer.d.ts.map +1 -0
  27. package/lib/typescript/commonjs/example/src/screens/Explore.d.ts +3 -0
  28. package/lib/typescript/commonjs/example/src/screens/Explore.d.ts.map +1 -0
  29. package/lib/typescript/commonjs/example/src/screens/Home.d.ts +3 -0
  30. package/lib/typescript/commonjs/example/src/screens/Home.d.ts.map +1 -0
  31. package/lib/typescript/commonjs/example/src/screens/InnerExplore.d.ts +3 -0
  32. package/lib/typescript/commonjs/example/src/screens/InnerExplore.d.ts.map +1 -0
  33. package/lib/typescript/commonjs/example/src/screens/styles.d.ts +51 -0
  34. package/lib/typescript/commonjs/example/src/screens/styles.d.ts.map +1 -0
  35. package/lib/typescript/commonjs/package.json +1 -0
  36. package/lib/typescript/commonjs/src/EventEmitter.d.ts.map +1 -0
  37. package/lib/typescript/commonjs/src/NativeOrientationDirector.d.ts.map +1 -0
  38. package/lib/typescript/commonjs/src/RNOrientationDirector.d.ts.map +1 -0
  39. package/lib/typescript/commonjs/src/hooks/useDeviceOrientation.hook.d.ts.map +1 -0
  40. package/lib/typescript/commonjs/src/hooks/useInterfaceOrientation.hook.d.ts.map +1 -0
  41. package/lib/typescript/commonjs/src/hooks/useIsInterfaceOrientationLocked.hook.d.ts.map +1 -0
  42. package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
  43. package/lib/typescript/commonjs/src/module.d.ts.map +1 -0
  44. package/lib/typescript/commonjs/src/types/AutoRotation.enum.d.ts.map +1 -0
  45. package/lib/typescript/commonjs/src/types/Event.enum.d.ts.map +1 -0
  46. package/lib/typescript/commonjs/src/types/HumanReadableAutoRotationsResource.type.d.ts.map +1 -0
  47. package/lib/typescript/commonjs/src/types/HumanReadableOrientationsResource.type.d.ts.map +1 -0
  48. package/lib/typescript/commonjs/src/types/LockableOrientation.type.d.ts.map +1 -0
  49. package/lib/typescript/commonjs/src/types/LockedEvent.interface.d.ts.map +1 -0
  50. package/lib/typescript/commonjs/src/types/Orientation.enum.d.ts.map +1 -0
  51. package/lib/typescript/commonjs/src/types/OrientationEvent.interface.d.ts.map +1 -0
  52. package/lib/typescript/commonjs/src/types/OrientationType.enum.d.ts.map +1 -0
  53. package/lib/typescript/module/example/src/App.d.ts +2 -0
  54. package/lib/typescript/module/example/src/App.d.ts.map +1 -0
  55. package/lib/typescript/module/example/src/AppNavigationContainer.d.ts +3 -0
  56. package/lib/typescript/module/example/src/AppNavigationContainer.d.ts.map +1 -0
  57. package/lib/typescript/module/example/src/screens/Explore.d.ts +3 -0
  58. package/lib/typescript/module/example/src/screens/Explore.d.ts.map +1 -0
  59. package/lib/typescript/module/example/src/screens/Home.d.ts +3 -0
  60. package/lib/typescript/module/example/src/screens/Home.d.ts.map +1 -0
  61. package/lib/typescript/module/example/src/screens/InnerExplore.d.ts +3 -0
  62. package/lib/typescript/module/example/src/screens/InnerExplore.d.ts.map +1 -0
  63. package/lib/typescript/module/example/src/screens/styles.d.ts +51 -0
  64. package/lib/typescript/module/example/src/screens/styles.d.ts.map +1 -0
  65. package/lib/typescript/module/src/EventEmitter.d.ts +11 -0
  66. package/lib/typescript/module/src/EventEmitter.d.ts.map +1 -0
  67. package/lib/typescript/module/src/NativeOrientationDirector.d.ts +17 -0
  68. package/lib/typescript/module/src/NativeOrientationDirector.d.ts.map +1 -0
  69. package/lib/typescript/module/src/RNOrientationDirector.d.ts +62 -0
  70. package/lib/typescript/module/src/RNOrientationDirector.d.ts.map +1 -0
  71. package/lib/typescript/module/src/hooks/useDeviceOrientation.hook.d.ts +8 -0
  72. package/lib/typescript/module/src/hooks/useDeviceOrientation.hook.d.ts.map +1 -0
  73. package/lib/typescript/module/src/hooks/useInterfaceOrientation.hook.d.ts +8 -0
  74. package/lib/typescript/module/src/hooks/useInterfaceOrientation.hook.d.ts.map +1 -0
  75. package/lib/typescript/module/src/hooks/useIsInterfaceOrientationLocked.hook.d.ts +7 -0
  76. package/lib/typescript/module/src/hooks/useIsInterfaceOrientationLocked.hook.d.ts.map +1 -0
  77. package/lib/typescript/module/src/index.d.ts +12 -0
  78. package/lib/typescript/module/src/index.d.ts.map +1 -0
  79. package/lib/typescript/module/src/module.d.ts +6 -0
  80. package/lib/typescript/module/src/module.d.ts.map +1 -0
  81. package/lib/typescript/module/src/types/AutoRotation.enum.d.ts +6 -0
  82. package/lib/typescript/module/src/types/AutoRotation.enum.d.ts.map +1 -0
  83. package/lib/typescript/module/src/types/Event.enum.d.ts +7 -0
  84. package/lib/typescript/module/src/types/Event.enum.d.ts.map +1 -0
  85. package/lib/typescript/module/src/types/HumanReadableAutoRotationsResource.type.d.ts +3 -0
  86. package/lib/typescript/module/src/types/HumanReadableAutoRotationsResource.type.d.ts.map +1 -0
  87. package/lib/typescript/module/src/types/HumanReadableOrientationsResource.type.d.ts +3 -0
  88. package/lib/typescript/module/src/types/HumanReadableOrientationsResource.type.d.ts.map +1 -0
  89. package/lib/typescript/module/src/types/LockableOrientation.type.d.ts +3 -0
  90. package/lib/typescript/module/src/types/LockableOrientation.type.d.ts.map +1 -0
  91. package/lib/typescript/module/src/types/LockedEvent.interface.d.ts +4 -0
  92. package/lib/typescript/module/src/types/LockedEvent.interface.d.ts.map +1 -0
  93. package/lib/typescript/module/src/types/Orientation.enum.d.ts +11 -0
  94. package/lib/typescript/module/src/types/Orientation.enum.d.ts.map +1 -0
  95. package/lib/typescript/module/src/types/OrientationEvent.interface.d.ts +5 -0
  96. package/lib/typescript/module/src/types/OrientationEvent.interface.d.ts.map +1 -0
  97. package/lib/typescript/module/src/types/OrientationType.enum.d.ts +5 -0
  98. package/lib/typescript/module/src/types/OrientationType.enum.d.ts.map +1 -0
  99. package/package.json +32 -13
  100. package/plugin/build/withRNOrientationAppDelegate.d.ts +1 -1
  101. package/plugin/build/withRNOrientationAppDelegate.js +20 -6
  102. package/lib/typescript/src/EventEmitter.d.ts.map +0 -1
  103. package/lib/typescript/src/NativeOrientationDirector.d.ts.map +0 -1
  104. package/lib/typescript/src/RNOrientationDirector.d.ts.map +0 -1
  105. package/lib/typescript/src/hooks/useDeviceOrientation.hook.d.ts.map +0 -1
  106. package/lib/typescript/src/hooks/useInterfaceOrientation.hook.d.ts.map +0 -1
  107. package/lib/typescript/src/hooks/useIsInterfaceOrientationLocked.hook.d.ts.map +0 -1
  108. package/lib/typescript/src/index.d.ts.map +0 -1
  109. package/lib/typescript/src/module.d.ts.map +0 -1
  110. package/lib/typescript/src/types/AutoRotation.enum.d.ts.map +0 -1
  111. package/lib/typescript/src/types/Event.enum.d.ts.map +0 -1
  112. package/lib/typescript/src/types/HumanReadableAutoRotationsResource.type.d.ts.map +0 -1
  113. package/lib/typescript/src/types/HumanReadableOrientationsResource.type.d.ts.map +0 -1
  114. package/lib/typescript/src/types/LockableOrientation.type.d.ts.map +0 -1
  115. package/lib/typescript/src/types/LockedEvent.interface.d.ts.map +0 -1
  116. package/lib/typescript/src/types/Orientation.enum.d.ts.map +0 -1
  117. package/lib/typescript/src/types/OrientationEvent.interface.d.ts.map +0 -1
  118. package/lib/typescript/src/types/OrientationType.enum.d.ts.map +0 -1
  119. /package/lib/typescript/{src → commonjs/src}/EventEmitter.d.ts +0 -0
  120. /package/lib/typescript/{src → commonjs/src}/NativeOrientationDirector.d.ts +0 -0
  121. /package/lib/typescript/{src → commonjs/src}/RNOrientationDirector.d.ts +0 -0
  122. /package/lib/typescript/{src → commonjs/src}/hooks/useDeviceOrientation.hook.d.ts +0 -0
  123. /package/lib/typescript/{src → commonjs/src}/hooks/useInterfaceOrientation.hook.d.ts +0 -0
  124. /package/lib/typescript/{src → commonjs/src}/hooks/useIsInterfaceOrientationLocked.hook.d.ts +0 -0
  125. /package/lib/typescript/{src → commonjs/src}/index.d.ts +0 -0
  126. /package/lib/typescript/{src → commonjs/src}/module.d.ts +0 -0
  127. /package/lib/typescript/{src → commonjs/src}/types/AutoRotation.enum.d.ts +0 -0
  128. /package/lib/typescript/{src → commonjs/src}/types/Event.enum.d.ts +0 -0
  129. /package/lib/typescript/{src → commonjs/src}/types/HumanReadableAutoRotationsResource.type.d.ts +0 -0
  130. /package/lib/typescript/{src → commonjs/src}/types/HumanReadableOrientationsResource.type.d.ts +0 -0
  131. /package/lib/typescript/{src → commonjs/src}/types/LockableOrientation.type.d.ts +0 -0
  132. /package/lib/typescript/{src → commonjs/src}/types/LockedEvent.interface.d.ts +0 -0
  133. /package/lib/typescript/{src → commonjs/src}/types/Orientation.enum.d.ts +0 -0
  134. /package/lib/typescript/{src → commonjs/src}/types/OrientationEvent.interface.d.ts +0 -0
  135. /package/lib/typescript/{src → commonjs/src}/types/OrientationType.enum.d.ts +0 -0
  136. /package/lib/typescript/{package.json → module/package.json} +0 -0
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "AutoRotation", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _AutoRotationEnum.AutoRotation;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "Orientation", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _OrientationEnum.Orientation;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "OrientationType", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _OrientationTypeEnum.OrientationType;
22
+ }
23
+ });
24
+ exports.default = void 0;
25
+ Object.defineProperty(exports, "useDeviceOrientation", {
26
+ enumerable: true,
27
+ get: function () {
28
+ return _useDeviceOrientationHook.default;
29
+ }
30
+ });
31
+ Object.defineProperty(exports, "useInterfaceOrientation", {
32
+ enumerable: true,
33
+ get: function () {
34
+ return _useInterfaceOrientationHook.default;
35
+ }
36
+ });
37
+ Object.defineProperty(exports, "useIsInterfaceOrientationLocked", {
38
+ enumerable: true,
39
+ get: function () {
40
+ return _useIsInterfaceOrientationLockedHook.default;
41
+ }
42
+ });
43
+ var _OrientationEnum = require("./types/Orientation.enum.js");
44
+ var _AutoRotationEnum = require("./types/AutoRotation.enum.js");
45
+ var _OrientationTypeEnum = require("./types/OrientationType.enum.js");
46
+ var _useDeviceOrientationHook = _interopRequireDefault(require("./hooks/useDeviceOrientation.hook.js"));
47
+ var _useInterfaceOrientationHook = _interopRequireDefault(require("./hooks/useInterfaceOrientation.hook.js"));
48
+ var _useIsInterfaceOrientationLockedHook = _interopRequireDefault(require("./hooks/useIsInterfaceOrientationLocked.hook.js"));
49
+ var _RNOrientationDirector = _interopRequireDefault(require("./RNOrientationDirector.js"));
50
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
51
+ var _default = exports.default = _RNOrientationDirector.default;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.ModuleEventEmitter = void 0;
7
+ var _reactNative = require("react-native");
8
+ const LINKING_ERROR = `The package 'react-native-orientation-director' doesn't seem to be linked. Make sure: \n\n` + _reactNative.Platform.select({
9
+ ios: "- You have run 'pod install'\n",
10
+ default: ''
11
+ }) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
12
+
13
+ // @ts-expect-error
14
+ const isTurboModuleEnabled = global.__turboModuleProxy != null;
15
+ const Module = isTurboModuleEnabled ? require('./NativeOrientationDirector').default : _reactNative.NativeModules.OrientationDirector;
16
+ const OrientationDirectorModule = Module ? Module : new Proxy({}, {
17
+ get() {
18
+ throw new Error(LINKING_ERROR);
19
+ }
20
+ });
21
+ const ModuleEventEmitter = exports.ModuleEventEmitter = new _reactNative.NativeEventEmitter(Module);
22
+ var _default = exports.default = OrientationDirectorModule;
@@ -0,0 +1 @@
1
+ {"type":"commonjs"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.AutoRotation = void 0;
7
+ let AutoRotation = exports.AutoRotation = /*#__PURE__*/function (AutoRotation) {
8
+ AutoRotation[AutoRotation["unknown"] = 0] = "unknown";
9
+ AutoRotation[AutoRotation["enabled"] = 1] = "enabled";
10
+ AutoRotation[AutoRotation["disabled"] = 2] = "disabled";
11
+ return AutoRotation;
12
+ }({});
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var Event = /*#__PURE__*/function (Event) {
8
+ Event["DeviceOrientationDidChange"] = "DeviceOrientationDidChange";
9
+ Event["InterfaceOrientationDidChange"] = "InterfaceOrientationDidChange";
10
+ Event["LockDidChange"] = "LockDidChange";
11
+ return Event;
12
+ }(Event || {});
13
+ var _default = exports.default = Event;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Orientation = void 0;
7
+ let Orientation = exports.Orientation = /*#__PURE__*/function (Orientation) {
8
+ Orientation[Orientation["unknown"] = 0] = "unknown";
9
+ Orientation[Orientation["portrait"] = 1] = "portrait";
10
+ Orientation[Orientation["landscapeRight"] = 2] = "landscapeRight";
11
+ Orientation[Orientation["portraitUpsideDown"] = 3] = "portraitUpsideDown";
12
+ Orientation[Orientation["landscapeLeft"] = 4] = "landscapeLeft";
13
+ Orientation[Orientation["landscape"] = 5] = "landscape";
14
+ Orientation[Orientation["faceUp"] = 6] = "faceUp";
15
+ Orientation[Orientation["faceDown"] = 7] = "faceDown";
16
+ return Orientation;
17
+ }({});
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.OrientationType = void 0;
7
+ let OrientationType = exports.OrientationType = /*#__PURE__*/function (OrientationType) {
8
+ OrientationType["device"] = "device";
9
+ OrientationType["interface"] = "interface";
10
+ return OrientationType;
11
+ }({});
@@ -0,0 +1,2 @@
1
+ export default function App(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=App.d.ts.map
@@ -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,3 @@
1
+ declare function AppNavigationContainer(): import("react/jsx-runtime").JSX.Element;
2
+ export default AppNavigationContainer;
3
+ //# sourceMappingURL=AppNavigationContainer.d.ts.map
@@ -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,3 @@
1
+ declare function Explore(): import("react/jsx-runtime").JSX.Element;
2
+ export default Explore;
3
+ //# sourceMappingURL=Explore.d.ts.map
@@ -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,3 @@
1
+ declare function Home(): import("react/jsx-runtime").JSX.Element;
2
+ export default Home;
3
+ //# sourceMappingURL=Home.d.ts.map
@@ -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,3 @@
1
+ declare function InnerExplore(): import("react/jsx-runtime").JSX.Element;
2
+ export default InnerExplore;
3
+ //# sourceMappingURL=InnerExplore.d.ts.map
@@ -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,2 @@
1
+ export default function App(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=App.d.ts.map
@@ -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,3 @@
1
+ declare function AppNavigationContainer(): import("react/jsx-runtime").JSX.Element;
2
+ export default AppNavigationContainer;
3
+ //# sourceMappingURL=AppNavigationContainer.d.ts.map
@@ -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,3 @@
1
+ declare function Explore(): import("react/jsx-runtime").JSX.Element;
2
+ export default Explore;
3
+ //# sourceMappingURL=Explore.d.ts.map
@@ -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,3 @@
1
+ declare function Home(): import("react/jsx-runtime").JSX.Element;
2
+ export default Home;
3
+ //# sourceMappingURL=Home.d.ts.map
@@ -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,3 @@
1
+ declare function InnerExplore(): import("react/jsx-runtime").JSX.Element;
2
+ export default InnerExplore;
3
+ //# sourceMappingURL=InnerExplore.d.ts.map
@@ -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