react-native-orientation-director 2.6.4 → 3.0.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.
Files changed (178) hide show
  1. package/README.md +11 -33
  2. package/android/build.gradle +19 -79
  3. package/android/src/main/AndroidManifest.xml +1 -2
  4. package/android/src/{newarch → main/java/com/orientationdirector}/OrientationDirectorModule.kt +20 -11
  5. package/android/src/main/java/com/orientationdirector/OrientationDirectorPackage.kt +15 -20
  6. package/android/src/main/java/com/orientationdirector/implementation/EventManager.kt +4 -17
  7. package/android/src/main/java/com/orientationdirector/implementation/EventManagerDelegate.kt +9 -0
  8. package/android/src/main/java/com/orientationdirector/implementation/OrientationDirectorModuleImpl.kt +23 -24
  9. package/android/src/main/java/com/orientationdirector/implementation/OrientationSensorsEventListener.kt +73 -80
  10. package/android/src/main/java/com/orientationdirector/implementation/Utils.kt +0 -54
  11. package/app.plugin.js +1 -1
  12. package/ios/OrientationDirector.h +1 -18
  13. package/ios/OrientationDirector.mm +35 -35
  14. package/ios/SharedOrientationDirectorImpl.swift +12 -0
  15. package/ios/implementation/EventManager.swift +12 -37
  16. package/ios/implementation/OrientationDirectorImpl.swift +6 -6
  17. package/lib/module/EventEmitter.js +15 -9
  18. package/lib/module/EventEmitter.js.map +1 -1
  19. package/lib/module/NativeOrientationDirector.js.map +1 -1
  20. package/lib/module/module.js +1 -2
  21. package/lib/module/module.js.map +1 -1
  22. package/lib/plugin/index.d.ts +3 -0
  23. package/lib/plugin/index.js +10 -0
  24. package/lib/plugin/withAndroidConfiguration.d.ts +3 -0
  25. package/{plugin/build/withRNOrientationMainActivity.js → lib/plugin/withAndroidConfiguration.js} +3 -3
  26. package/lib/plugin/withIosConfiguration.d.ts +3 -0
  27. package/lib/plugin/withIosConfiguration.js +62 -0
  28. package/lib/typescript/{commonjs/src → src}/EventEmitter.d.ts +5 -4
  29. package/lib/typescript/src/EventEmitter.d.ts.map +1 -0
  30. package/lib/typescript/{commonjs/src → src}/NativeOrientationDirector.d.ts +10 -3
  31. package/lib/typescript/src/NativeOrientationDirector.d.ts.map +1 -0
  32. package/lib/typescript/{module/src → src}/RNOrientationDirector.d.ts +3 -3
  33. package/lib/typescript/src/RNOrientationDirector.d.ts.map +1 -0
  34. package/lib/typescript/src/hooks/useDeviceOrientation.hook.d.ts.map +1 -0
  35. package/lib/typescript/src/hooks/useInterfaceOrientation.hook.d.ts.map +1 -0
  36. package/lib/typescript/src/hooks/useIsInterfaceOrientationLocked.hook.d.ts.map +1 -0
  37. package/lib/typescript/src/index.d.ts.map +1 -0
  38. package/lib/typescript/src/module.d.ts +4 -0
  39. package/lib/typescript/src/module.d.ts.map +1 -0
  40. package/lib/typescript/src/types/AutoRotation.enum.d.ts.map +1 -0
  41. package/lib/typescript/src/types/Event.enum.d.ts.map +1 -0
  42. package/lib/typescript/src/types/HumanReadableAutoRotationsResource.type.d.ts.map +1 -0
  43. package/lib/typescript/src/types/HumanReadableOrientationsResource.type.d.ts.map +1 -0
  44. package/lib/typescript/src/types/LockableOrientation.type.d.ts.map +1 -0
  45. package/lib/typescript/src/types/LockedEvent.interface.d.ts.map +1 -0
  46. package/lib/typescript/src/types/Orientation.enum.d.ts.map +1 -0
  47. package/lib/typescript/src/types/OrientationEvent.interface.d.ts.map +1 -0
  48. package/lib/typescript/src/types/OrientationType.enum.d.ts.map +1 -0
  49. package/package.json +72 -77
  50. package/react-native-orientation-director.podspec +4 -24
  51. package/src/EventEmitter.ts +21 -24
  52. package/src/NativeOrientationDirector.ts +8 -3
  53. package/src/module.ts +1 -3
  54. package/android/gradle.properties +0 -17
  55. package/android/src/main/AndroidManifestNew.xml +0 -2
  56. package/android/src/oldarch/OrientationDirectorModule.kt +0 -66
  57. package/android/src/test/java/com/orientationdirector/implementation/OrientationDirectorModuleImplTest.kt +0 -199
  58. package/android/src/test/java/com/orientationdirector/implementation/UtilsTest.kt +0 -314
  59. package/ios/react-native-orientation-director-Bridging-Header.h +0 -6
  60. package/lib/commonjs/EventEmitter.js +0 -48
  61. package/lib/commonjs/NativeOrientationDirector.js +0 -8
  62. package/lib/commonjs/RNOrientationDirector.js +0 -126
  63. package/lib/commonjs/hooks/useDeviceOrientation.hook.js +0 -37
  64. package/lib/commonjs/hooks/useInterfaceOrientation.hook.js +0 -37
  65. package/lib/commonjs/hooks/useIsInterfaceOrientationLocked.hook.js +0 -27
  66. package/lib/commonjs/index.js +0 -51
  67. package/lib/commonjs/module.js +0 -22
  68. package/lib/commonjs/package.json +0 -1
  69. package/lib/commonjs/types/AutoRotation.enum.js +0 -12
  70. package/lib/commonjs/types/Event.enum.js +0 -13
  71. package/lib/commonjs/types/HumanReadableAutoRotationsResource.type.js +0 -5
  72. package/lib/commonjs/types/HumanReadableOrientationsResource.type.js +0 -5
  73. package/lib/commonjs/types/LockableOrientation.type.js +0 -5
  74. package/lib/commonjs/types/LockedEvent.interface.js +0 -1
  75. package/lib/commonjs/types/Orientation.enum.js +0 -17
  76. package/lib/commonjs/types/OrientationEvent.interface.js +0 -5
  77. package/lib/commonjs/types/OrientationType.enum.js +0 -11
  78. package/lib/typescript/commonjs/example/src/App.d.ts +0 -2
  79. package/lib/typescript/commonjs/example/src/App.d.ts.map +0 -1
  80. package/lib/typescript/commonjs/example/src/AppNavigationContainer.d.ts +0 -3
  81. package/lib/typescript/commonjs/example/src/AppNavigationContainer.d.ts.map +0 -1
  82. package/lib/typescript/commonjs/example/src/screens/Explore.d.ts +0 -3
  83. package/lib/typescript/commonjs/example/src/screens/Explore.d.ts.map +0 -1
  84. package/lib/typescript/commonjs/example/src/screens/Home.d.ts +0 -3
  85. package/lib/typescript/commonjs/example/src/screens/Home.d.ts.map +0 -1
  86. package/lib/typescript/commonjs/example/src/screens/InnerExplore.d.ts +0 -3
  87. package/lib/typescript/commonjs/example/src/screens/InnerExplore.d.ts.map +0 -1
  88. package/lib/typescript/commonjs/example/src/screens/styles.d.ts +0 -51
  89. package/lib/typescript/commonjs/example/src/screens/styles.d.ts.map +0 -1
  90. package/lib/typescript/commonjs/package.json +0 -1
  91. package/lib/typescript/commonjs/src/EventEmitter.d.ts.map +0 -1
  92. package/lib/typescript/commonjs/src/NativeOrientationDirector.d.ts.map +0 -1
  93. package/lib/typescript/commonjs/src/RNOrientationDirector.d.ts +0 -62
  94. package/lib/typescript/commonjs/src/RNOrientationDirector.d.ts.map +0 -1
  95. package/lib/typescript/commonjs/src/hooks/useDeviceOrientation.hook.d.ts.map +0 -1
  96. package/lib/typescript/commonjs/src/hooks/useInterfaceOrientation.hook.d.ts.map +0 -1
  97. package/lib/typescript/commonjs/src/hooks/useIsInterfaceOrientationLocked.hook.d.ts.map +0 -1
  98. package/lib/typescript/commonjs/src/index.d.ts.map +0 -1
  99. package/lib/typescript/commonjs/src/module.d.ts +0 -6
  100. package/lib/typescript/commonjs/src/module.d.ts.map +0 -1
  101. package/lib/typescript/commonjs/src/types/AutoRotation.enum.d.ts.map +0 -1
  102. package/lib/typescript/commonjs/src/types/Event.enum.d.ts.map +0 -1
  103. package/lib/typescript/commonjs/src/types/HumanReadableAutoRotationsResource.type.d.ts.map +0 -1
  104. package/lib/typescript/commonjs/src/types/HumanReadableOrientationsResource.type.d.ts.map +0 -1
  105. package/lib/typescript/commonjs/src/types/LockableOrientation.type.d.ts.map +0 -1
  106. package/lib/typescript/commonjs/src/types/LockedEvent.interface.d.ts.map +0 -1
  107. package/lib/typescript/commonjs/src/types/Orientation.enum.d.ts.map +0 -1
  108. package/lib/typescript/commonjs/src/types/OrientationEvent.interface.d.ts.map +0 -1
  109. package/lib/typescript/commonjs/src/types/OrientationType.enum.d.ts.map +0 -1
  110. package/lib/typescript/module/example/src/App.d.ts +0 -2
  111. package/lib/typescript/module/example/src/App.d.ts.map +0 -1
  112. package/lib/typescript/module/example/src/AppNavigationContainer.d.ts +0 -3
  113. package/lib/typescript/module/example/src/AppNavigationContainer.d.ts.map +0 -1
  114. package/lib/typescript/module/example/src/screens/Explore.d.ts +0 -3
  115. package/lib/typescript/module/example/src/screens/Explore.d.ts.map +0 -1
  116. package/lib/typescript/module/example/src/screens/Home.d.ts +0 -3
  117. package/lib/typescript/module/example/src/screens/Home.d.ts.map +0 -1
  118. package/lib/typescript/module/example/src/screens/InnerExplore.d.ts +0 -3
  119. package/lib/typescript/module/example/src/screens/InnerExplore.d.ts.map +0 -1
  120. package/lib/typescript/module/example/src/screens/styles.d.ts +0 -51
  121. package/lib/typescript/module/example/src/screens/styles.d.ts.map +0 -1
  122. package/lib/typescript/module/src/EventEmitter.d.ts +0 -11
  123. package/lib/typescript/module/src/EventEmitter.d.ts.map +0 -1
  124. package/lib/typescript/module/src/NativeOrientationDirector.d.ts +0 -17
  125. package/lib/typescript/module/src/NativeOrientationDirector.d.ts.map +0 -1
  126. package/lib/typescript/module/src/RNOrientationDirector.d.ts.map +0 -1
  127. package/lib/typescript/module/src/hooks/useDeviceOrientation.hook.d.ts +0 -8
  128. package/lib/typescript/module/src/hooks/useDeviceOrientation.hook.d.ts.map +0 -1
  129. package/lib/typescript/module/src/hooks/useInterfaceOrientation.hook.d.ts +0 -8
  130. package/lib/typescript/module/src/hooks/useInterfaceOrientation.hook.d.ts.map +0 -1
  131. package/lib/typescript/module/src/hooks/useIsInterfaceOrientationLocked.hook.d.ts +0 -7
  132. package/lib/typescript/module/src/hooks/useIsInterfaceOrientationLocked.hook.d.ts.map +0 -1
  133. package/lib/typescript/module/src/index.d.ts +0 -12
  134. package/lib/typescript/module/src/index.d.ts.map +0 -1
  135. package/lib/typescript/module/src/module.d.ts +0 -6
  136. package/lib/typescript/module/src/module.d.ts.map +0 -1
  137. package/lib/typescript/module/src/types/AutoRotation.enum.d.ts +0 -6
  138. package/lib/typescript/module/src/types/AutoRotation.enum.d.ts.map +0 -1
  139. package/lib/typescript/module/src/types/Event.enum.d.ts +0 -7
  140. package/lib/typescript/module/src/types/Event.enum.d.ts.map +0 -1
  141. package/lib/typescript/module/src/types/HumanReadableAutoRotationsResource.type.d.ts +0 -3
  142. package/lib/typescript/module/src/types/HumanReadableAutoRotationsResource.type.d.ts.map +0 -1
  143. package/lib/typescript/module/src/types/HumanReadableOrientationsResource.type.d.ts +0 -3
  144. package/lib/typescript/module/src/types/HumanReadableOrientationsResource.type.d.ts.map +0 -1
  145. package/lib/typescript/module/src/types/LockableOrientation.type.d.ts +0 -3
  146. package/lib/typescript/module/src/types/LockableOrientation.type.d.ts.map +0 -1
  147. package/lib/typescript/module/src/types/LockedEvent.interface.d.ts +0 -4
  148. package/lib/typescript/module/src/types/LockedEvent.interface.d.ts.map +0 -1
  149. package/lib/typescript/module/src/types/Orientation.enum.d.ts +0 -11
  150. package/lib/typescript/module/src/types/Orientation.enum.d.ts.map +0 -1
  151. package/lib/typescript/module/src/types/OrientationEvent.interface.d.ts +0 -5
  152. package/lib/typescript/module/src/types/OrientationEvent.interface.d.ts.map +0 -1
  153. package/lib/typescript/module/src/types/OrientationType.enum.d.ts +0 -5
  154. package/lib/typescript/module/src/types/OrientationType.enum.d.ts.map +0 -1
  155. package/plugin/build/custom-mod/withBridgingHeader.d.ts +0 -12
  156. package/plugin/build/custom-mod/withBridgingHeader.js +0 -107
  157. package/plugin/build/index.d.ts +0 -3
  158. package/plugin/build/index.js +0 -27
  159. package/plugin/build/withRNOrientationAppDelegate.d.ts +0 -4
  160. package/plugin/build/withRNOrientationAppDelegate.js +0 -102
  161. package/plugin/build/withRNOrientationBridgingHeader.d.ts +0 -3
  162. package/plugin/build/withRNOrientationBridgingHeader.js +0 -27
  163. package/plugin/build/withRNOrientationMainActivity.d.ts +0 -3
  164. package/plugin/tsconfig.json +0 -9
  165. /package/lib/typescript/{module/package.json → package.json} +0 -0
  166. /package/lib/typescript/{commonjs/src → src}/hooks/useDeviceOrientation.hook.d.ts +0 -0
  167. /package/lib/typescript/{commonjs/src → src}/hooks/useInterfaceOrientation.hook.d.ts +0 -0
  168. /package/lib/typescript/{commonjs/src → src}/hooks/useIsInterfaceOrientationLocked.hook.d.ts +0 -0
  169. /package/lib/typescript/{commonjs/src → src}/index.d.ts +0 -0
  170. /package/lib/typescript/{commonjs/src → src}/types/AutoRotation.enum.d.ts +0 -0
  171. /package/lib/typescript/{commonjs/src → src}/types/Event.enum.d.ts +0 -0
  172. /package/lib/typescript/{commonjs/src → src}/types/HumanReadableAutoRotationsResource.type.d.ts +0 -0
  173. /package/lib/typescript/{commonjs/src → src}/types/HumanReadableOrientationsResource.type.d.ts +0 -0
  174. /package/lib/typescript/{commonjs/src → src}/types/LockableOrientation.type.d.ts +0 -0
  175. /package/lib/typescript/{commonjs/src → src}/types/LockedEvent.interface.d.ts +0 -0
  176. /package/lib/typescript/{commonjs/src → src}/types/Orientation.enum.d.ts +0 -0
  177. /package/lib/typescript/{commonjs/src → src}/types/OrientationEvent.interface.d.ts +0 -0
  178. /package/lib/typescript/{commonjs/src → src}/types/OrientationType.enum.d.ts +0 -0
@@ -1,126 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _reactNative = require("react-native");
8
- var _module = _interopRequireDefault(require("./module.js"));
9
- var _OrientationEnum = require("./types/Orientation.enum.js");
10
- var _AutoRotationEnum = require("./types/AutoRotation.enum.js");
11
- var _OrientationTypeEnum = require("./types/OrientationType.enum.js");
12
- var _EventEmitter = _interopRequireDefault(require("./EventEmitter.js"));
13
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
- class RNOrientationDirector {
15
- static _humanReadableOrientationsResource = {
16
- [_OrientationEnum.Orientation.unknown]: 'Unknown',
17
- [_OrientationEnum.Orientation.portrait]: 'Portrait',
18
- [_OrientationEnum.Orientation.portraitUpsideDown]: 'Portrait Upside Down',
19
- [_OrientationEnum.Orientation.landscapeLeft]: 'Landscape Left',
20
- [_OrientationEnum.Orientation.landscapeRight]: 'Landscape Right',
21
- [_OrientationEnum.Orientation.landscape]: 'Landscape',
22
- [_OrientationEnum.Orientation.faceUp]: 'Face Up',
23
- [_OrientationEnum.Orientation.faceDown]: 'Face Down'
24
- };
25
- static _humanReadableAutoRotationsResource = {
26
- [_AutoRotationEnum.AutoRotation.unknown]: 'Unknown',
27
- [_AutoRotationEnum.AutoRotation.enabled]: 'Enabled',
28
- [_AutoRotationEnum.AutoRotation.disabled]: 'Disabled'
29
- };
30
- setHumanReadableOrientations(resource) {
31
- RNOrientationDirector._humanReadableOrientationsResource = resource;
32
- }
33
- setHumanReadableAutoRotations(resource) {
34
- RNOrientationDirector._humanReadableAutoRotationsResource = resource;
35
- }
36
- static getInterfaceOrientation() {
37
- return _module.default.getInterfaceOrientation();
38
- }
39
- static getDeviceOrientation() {
40
- return _module.default.getDeviceOrientation();
41
- }
42
-
43
- /**
44
- * Please be aware that device orientation is not the
45
- * same as interface orientation.
46
- *
47
- * Specifically, landscape left and right are inverted:
48
- *
49
- * - landscapeLeft in device orientation is landscapeRight in interface orientation
50
- * - landscapeRight in device orientation is landscapeLeft in interface orientation
51
- *
52
- * This is a behavior of the native API.
53
- *
54
- * When you pass an orientation value, do provide orientationType
55
- * as well if the orientation value is not an interface orientation.
56
- * Example: when using listenForDeviceOrientationChanges.
57
- *
58
- * @param orientation any lockable orientation enum value
59
- * @param orientationType any orientation type enum value
60
- */
61
- static lockTo(orientation, orientationType = _OrientationTypeEnum.OrientationType.interface) {
62
- if (orientationType === _OrientationTypeEnum.OrientationType.interface) {
63
- _module.default.lockTo(orientation);
64
- return;
65
- }
66
- if (orientation === _OrientationEnum.Orientation.landscapeLeft) {
67
- _module.default.lockTo(_OrientationEnum.Orientation.landscapeRight);
68
- return;
69
- }
70
- if (orientation === _OrientationEnum.Orientation.landscapeRight) {
71
- _module.default.lockTo(_OrientationEnum.Orientation.landscapeLeft);
72
- return;
73
- }
74
- _module.default.lockTo(orientation);
75
- }
76
- static unlock() {
77
- _module.default.unlock();
78
- }
79
- static isLocked() {
80
- return _module.default.isLocked();
81
- }
82
- static isAutoRotationEnabled() {
83
- if (_reactNative.Platform.OS !== 'android') {
84
- return _AutoRotationEnum.AutoRotation.unknown;
85
- }
86
- return _module.default.isAutoRotationEnabled() ? _AutoRotationEnum.AutoRotation.enabled : _AutoRotationEnum.AutoRotation.disabled;
87
- }
88
- static resetSupportedInterfaceOrientations() {
89
- _module.default.resetSupportedInterfaceOrientations();
90
- }
91
- static listenForDeviceOrientationChanges(callback) {
92
- return _EventEmitter.default.addDeviceOrientationDidChangeListener(callback);
93
- }
94
- static listenForInterfaceOrientationChanges(callback) {
95
- return _EventEmitter.default.addInterfaceOrientationDidChangeListener(callback);
96
- }
97
- static listenForLockChanges(callback) {
98
- return _EventEmitter.default.addLockDidChangeListener(callback);
99
- }
100
- static convertOrientationToHumanReadableString(orientation) {
101
- return RNOrientationDirector._humanReadableOrientationsResource[orientation];
102
- }
103
- static convertAutoRotationToHumanReadableString(autoRotation) {
104
- return RNOrientationDirector._humanReadableAutoRotationsResource[autoRotation];
105
- }
106
-
107
- /**
108
- * This method checks if the given orientation is lockable
109
- * by interface perspective.
110
- *
111
- * All orientations are lockable except for unknown, faceUp
112
- * and faceDown.
113
- *
114
- * This method is useful when you want to lock the interface
115
- * orientation from a given device orientation.
116
- *
117
- * Example: with listenForDeviceOrientationChanges
118
- *
119
- * @param orientation any orientation enum value
120
- * @returns true if the orientation is lockable
121
- */
122
- static isLockableOrientation(orientation) {
123
- return !(orientation === _OrientationEnum.Orientation.unknown || orientation === _OrientationEnum.Orientation.faceUp || orientation === _OrientationEnum.Orientation.faceDown);
124
- }
125
- }
126
- var _default = exports.default = RNOrientationDirector;
@@ -1,37 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _react = _interopRequireWildcard(require("react"));
8
- var _RNOrientationDirector = _interopRequireDefault(require("../RNOrientationDirector.js"));
9
- var _OrientationEnum = require("../types/Orientation.enum.js");
10
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
12
- /**
13
- * Hook that returns the current device orientation.
14
- * It listens for orientation changes and updates the state accordingly.
15
- */
16
- const useDeviceOrientation = () => {
17
- const initialRender = (0, _react.useRef)(false);
18
- const [orientation, setOrientation] = _react.default.useState(_OrientationEnum.Orientation.unknown);
19
- _react.default.useEffect(() => {
20
- if (initialRender.current) {
21
- return;
22
- }
23
- initialRender.current = true;
24
- _RNOrientationDirector.default.getDeviceOrientation().then(setOrientation);
25
- }, []);
26
- _react.default.useEffect(() => {
27
- const onChange = event => {
28
- setOrientation(event.orientation);
29
- };
30
- const subscription = _RNOrientationDirector.default.listenForDeviceOrientationChanges(onChange);
31
- return () => {
32
- subscription.remove();
33
- };
34
- }, []);
35
- return orientation;
36
- };
37
- var _default = exports.default = useDeviceOrientation;
@@ -1,37 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _react = _interopRequireWildcard(require("react"));
8
- var _RNOrientationDirector = _interopRequireDefault(require("../RNOrientationDirector.js"));
9
- var _OrientationEnum = require("../types/Orientation.enum.js");
10
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
12
- /**
13
- * Hook that returns the current interface orientation.
14
- * It listens for orientation changes and updates the state accordingly.
15
- */
16
- const useInterfaceOrientation = () => {
17
- const initialRender = (0, _react.useRef)(false);
18
- const [orientation, setOrientation] = _react.default.useState(_OrientationEnum.Orientation.unknown);
19
- _react.default.useEffect(() => {
20
- if (initialRender.current) {
21
- return;
22
- }
23
- initialRender.current = true;
24
- _RNOrientationDirector.default.getInterfaceOrientation().then(setOrientation);
25
- }, []);
26
- _react.default.useEffect(() => {
27
- const onChange = event => {
28
- setOrientation(event.orientation);
29
- };
30
- const subscription = _RNOrientationDirector.default.listenForInterfaceOrientationChanges(onChange);
31
- return () => {
32
- subscription.remove();
33
- };
34
- }, []);
35
- return orientation;
36
- };
37
- var _default = exports.default = useInterfaceOrientation;
@@ -1,27 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _RNOrientationDirector = _interopRequireDefault(require("../RNOrientationDirector.js"));
9
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
- /**
11
- * Hook that returns whether the interface is locked.
12
- * It listens for changes and updates the state accordingly.
13
- */
14
- const useIsInterfaceOrientationLocked = () => {
15
- const [orientation, setOrientation] = _react.default.useState(() => _RNOrientationDirector.default.isLocked());
16
- _react.default.useEffect(() => {
17
- const onChange = event => {
18
- setOrientation(event.locked);
19
- };
20
- const subscription = _RNOrientationDirector.default.listenForLockChanges(onChange);
21
- return () => {
22
- subscription.remove();
23
- };
24
- }, []);
25
- return orientation;
26
- };
27
- var _default = exports.default = useIsInterfaceOrientationLocked;
@@ -1,51 +0,0 @@
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;
@@ -1,22 +0,0 @@
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;
@@ -1 +0,0 @@
1
- {"type":"commonjs"}
@@ -1,12 +0,0 @@
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
- }({});
@@ -1,13 +0,0 @@
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;
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1 +0,0 @@
1
- "use strict";
@@ -1,17 +0,0 @@
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
- }({});
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,11 +0,0 @@
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
- }({});
@@ -1,2 +0,0 @@
1
- export default function App(): import("react/jsx-runtime").JSX.Element;
2
- //# sourceMappingURL=App.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../../../example/src/App.tsx"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,GAAG,4CAE1B"}
@@ -1,3 +0,0 @@
1
- declare function AppNavigationContainer(): import("react/jsx-runtime").JSX.Element;
2
- export default AppNavigationContainer;
3
- //# sourceMappingURL=AppNavigationContainer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AppNavigationContainer.d.ts","sourceRoot":"","sources":["../../../../../example/src/AppNavigationContainer.tsx"],"names":[],"mappings":"AAOA,iBAAS,sBAAsB,4CA8B9B;AAED,eAAe,sBAAsB,CAAC"}
@@ -1,3 +0,0 @@
1
- declare function Explore(): import("react/jsx-runtime").JSX.Element;
2
- export default Explore;
3
- //# sourceMappingURL=Explore.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Explore.d.ts","sourceRoot":"","sources":["../../../../../../example/src/screens/Explore.tsx"],"names":[],"mappings":"AASA,iBAAS,OAAO,4CAwCf;AAED,eAAe,OAAO,CAAC"}
@@ -1,3 +0,0 @@
1
- declare function Home(): import("react/jsx-runtime").JSX.Element;
2
- export default Home;
3
- //# sourceMappingURL=Home.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Home.d.ts","sourceRoot":"","sources":["../../../../../../example/src/screens/Home.tsx"],"names":[],"mappings":"AAOA,iBAAS,IAAI,4CAmHZ;AAED,eAAe,IAAI,CAAC"}
@@ -1,3 +0,0 @@
1
- declare function InnerExplore(): import("react/jsx-runtime").JSX.Element;
2
- export default InnerExplore;
3
- //# sourceMappingURL=InnerExplore.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InnerExplore.d.ts","sourceRoot":"","sources":["../../../../../../example/src/screens/InnerExplore.tsx"],"names":[],"mappings":"AAMA,iBAAS,YAAY,4CAkBpB;AAED,eAAe,YAAY,CAAC"}
@@ -1,51 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- {"type":"commonjs"}
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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"}
@@ -1,62 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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"}
@@ -1,6 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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"}