@react-native-harness/runtime 1.1.0-rc.4 → 1.1.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 (197) hide show
  1. package/dist/disableHMRWhenReady.d.ts.map +1 -1
  2. package/dist/disableHMRWhenReady.js +10 -4
  3. package/dist/index.d.ts +1 -0
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +1 -0
  6. package/dist/initialize.js +11 -1
  7. package/dist/jsx/jsx-runtime.d.ts +3 -1
  8. package/dist/jsx/jsx-runtime.d.ts.map +1 -1
  9. package/dist/jsx/jsx-runtime.js +8 -0
  10. package/dist/render/TestComponentOverlay.d.ts.map +1 -1
  11. package/dist/render/TestComponentOverlay.js +1 -2
  12. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  13. package/dist/ui/ReadyScreen.d.ts.map +1 -1
  14. package/dist/ui/ReadyScreen.js +8 -97
  15. package/dist/ui/RunnerScreen.d.ts +8 -0
  16. package/dist/ui/RunnerScreen.d.ts.map +1 -0
  17. package/dist/ui/RunnerScreen.js +58 -0
  18. package/dist/ui/WrongEnvironmentScreen.d.ts.map +1 -1
  19. package/dist/ui/WrongEnvironmentScreen.js +3 -77
  20. package/dist/ui/images.d.ts +3 -0
  21. package/dist/ui/images.d.ts.map +1 -0
  22. package/dist/ui/images.js +2 -0
  23. package/package.json +2 -2
  24. package/src/disableHMRWhenReady.test.ts +42 -0
  25. package/src/disableHMRWhenReady.ts +15 -7
  26. package/src/index.ts +1 -0
  27. package/src/initialize.ts +11 -5
  28. package/src/jsx/jsx-runtime.ts +16 -1
  29. package/src/react-native.d.ts +14 -0
  30. package/src/render/TestComponentOverlay.tsx +5 -2
  31. package/src/ui/ReadyScreen.tsx +10 -130
  32. package/src/ui/RunnerScreen.tsx +93 -0
  33. package/src/ui/WrongEnvironmentScreen.tsx +6 -90
  34. package/src/ui/images.ts +2 -0
  35. package/dist/NativeHarness.d.ts +0 -41
  36. package/dist/NativeHarness.d.ts.map +0 -1
  37. package/dist/NativeHarness.js +0 -2
  38. package/dist/constants.d.ts +0 -2
  39. package/dist/constants.d.ts.map +0 -1
  40. package/dist/constants.js +0 -1
  41. package/dist/render/queries.d.ts +0 -7
  42. package/dist/render/queries.d.ts.map +0 -1
  43. package/dist/render/queries.js +0 -99
  44. package/dist/runHarnessTestsInModule.d.ts +0 -9
  45. package/dist/runHarnessTestsInModule.d.ts.map +0 -1
  46. package/dist/runHarnessTestsInModule.js +0 -57
  47. package/dist/screen/index.d.ts +0 -50
  48. package/dist/screen/index.d.ts.map +0 -1
  49. package/dist/screen/index.js +0 -46
  50. package/dist/userEvent/index.d.ts +0 -16
  51. package/dist/userEvent/index.d.ts.map +0 -1
  52. package/dist/userEvent/index.js +0 -31
  53. package/dist/utils/hmr.d.ts +0 -2
  54. package/dist/utils/hmr.d.ts.map +0 -1
  55. package/dist/utils/hmr.js +0 -3
  56. package/dist/utils/parse-error-stack.d.ts +0 -9
  57. package/dist/utils/parse-error-stack.d.ts.map +0 -1
  58. package/dist/utils/parse-error-stack.js +0 -56
  59. package/out-tsc/vitest/src/__tests__/collector.test.d.ts +0 -2
  60. package/out-tsc/vitest/src/__tests__/collector.test.d.ts.map +0 -1
  61. package/out-tsc/vitest/src/__tests__/error-handling.test.d.ts +0 -2
  62. package/out-tsc/vitest/src/__tests__/error-handling.test.d.ts.map +0 -1
  63. package/out-tsc/vitest/src/__tests__/expect.test.d.ts +0 -2
  64. package/out-tsc/vitest/src/__tests__/expect.test.d.ts.map +0 -1
  65. package/out-tsc/vitest/src/__tests__/initialize.test.d.ts +0 -2
  66. package/out-tsc/vitest/src/__tests__/initialize.test.d.ts.map +0 -1
  67. package/out-tsc/vitest/src/__tests__/spy.test.d.ts +0 -2
  68. package/out-tsc/vitest/src/__tests__/spy.test.d.ts.map +0 -1
  69. package/out-tsc/vitest/src/bundler/bundle.d.ts +0 -2
  70. package/out-tsc/vitest/src/bundler/bundle.d.ts.map +0 -1
  71. package/out-tsc/vitest/src/bundler/errors.d.ts +0 -15
  72. package/out-tsc/vitest/src/bundler/errors.d.ts.map +0 -1
  73. package/out-tsc/vitest/src/bundler/evaluate.d.ts +0 -2
  74. package/out-tsc/vitest/src/bundler/evaluate.d.ts.map +0 -1
  75. package/out-tsc/vitest/src/bundler/factory.d.ts +0 -3
  76. package/out-tsc/vitest/src/bundler/factory.d.ts.map +0 -1
  77. package/out-tsc/vitest/src/bundler/index.d.ts +0 -4
  78. package/out-tsc/vitest/src/bundler/index.d.ts.map +0 -1
  79. package/out-tsc/vitest/src/bundler/types.d.ts +0 -7
  80. package/out-tsc/vitest/src/bundler/types.d.ts.map +0 -1
  81. package/out-tsc/vitest/src/client/factory.d.ts +0 -2
  82. package/out-tsc/vitest/src/client/factory.d.ts.map +0 -1
  83. package/out-tsc/vitest/src/client/getDeviceDescriptor.d.ts +0 -8
  84. package/out-tsc/vitest/src/client/getDeviceDescriptor.d.ts.map +0 -1
  85. package/out-tsc/vitest/src/client/getWSServer.d.ts +0 -2
  86. package/out-tsc/vitest/src/client/getWSServer.d.ts.map +0 -1
  87. package/out-tsc/vitest/src/client/index.d.ts +0 -2
  88. package/out-tsc/vitest/src/client/index.d.ts.map +0 -1
  89. package/out-tsc/vitest/src/client/setup-files.d.ts +0 -12
  90. package/out-tsc/vitest/src/client/setup-files.d.ts.map +0 -1
  91. package/out-tsc/vitest/src/client/store.d.ts +0 -4
  92. package/out-tsc/vitest/src/client/store.d.ts.map +0 -1
  93. package/out-tsc/vitest/src/collector/errors.d.ts +0 -8
  94. package/out-tsc/vitest/src/collector/errors.d.ts.map +0 -1
  95. package/out-tsc/vitest/src/collector/factory.d.ts +0 -3
  96. package/out-tsc/vitest/src/collector/factory.d.ts.map +0 -1
  97. package/out-tsc/vitest/src/collector/functions.d.ts +0 -22
  98. package/out-tsc/vitest/src/collector/functions.d.ts.map +0 -1
  99. package/out-tsc/vitest/src/collector/index.d.ts +0 -5
  100. package/out-tsc/vitest/src/collector/index.d.ts.map +0 -1
  101. package/out-tsc/vitest/src/collector/types.d.ts +0 -10
  102. package/out-tsc/vitest/src/collector/types.d.ts.map +0 -1
  103. package/out-tsc/vitest/src/collector/validation.d.ts +0 -4
  104. package/out-tsc/vitest/src/collector/validation.d.ts.map +0 -1
  105. package/out-tsc/vitest/src/constants.d.ts +0 -2
  106. package/out-tsc/vitest/src/constants.d.ts.map +0 -1
  107. package/out-tsc/vitest/src/disableHMRWhenReady.d.ts +0 -2
  108. package/out-tsc/vitest/src/disableHMRWhenReady.d.ts.map +0 -1
  109. package/out-tsc/vitest/src/entry-point.d.ts +0 -2
  110. package/out-tsc/vitest/src/entry-point.d.ts.map +0 -1
  111. package/out-tsc/vitest/src/errors.d.ts +0 -6
  112. package/out-tsc/vitest/src/errors.d.ts.map +0 -1
  113. package/out-tsc/vitest/src/expect/expect.d.ts +0 -9
  114. package/out-tsc/vitest/src/expect/expect.d.ts.map +0 -1
  115. package/out-tsc/vitest/src/expect/index.d.ts +0 -2
  116. package/out-tsc/vitest/src/expect/index.d.ts.map +0 -1
  117. package/out-tsc/vitest/src/expect/matchers/toMatchImageSnapshot.d.ts +0 -13
  118. package/out-tsc/vitest/src/expect/matchers/toMatchImageSnapshot.d.ts.map +0 -1
  119. package/out-tsc/vitest/src/expect/setup.d.ts +0 -2
  120. package/out-tsc/vitest/src/expect/setup.d.ts.map +0 -1
  121. package/out-tsc/vitest/src/filtering/index.d.ts +0 -2
  122. package/out-tsc/vitest/src/filtering/index.d.ts.map +0 -1
  123. package/out-tsc/vitest/src/filtering/testNameFilter.d.ts +0 -12
  124. package/out-tsc/vitest/src/filtering/testNameFilter.d.ts.map +0 -1
  125. package/out-tsc/vitest/src/globals.d.ts +0 -19
  126. package/out-tsc/vitest/src/globals.d.ts.map +0 -1
  127. package/out-tsc/vitest/src/index.d.ts +0 -11
  128. package/out-tsc/vitest/src/index.d.ts.map +0 -1
  129. package/out-tsc/vitest/src/initialize.d.ts +0 -2
  130. package/out-tsc/vitest/src/initialize.d.ts.map +0 -1
  131. package/out-tsc/vitest/src/jest-mock.d.ts +0 -2
  132. package/out-tsc/vitest/src/jest-mock.d.ts.map +0 -1
  133. package/out-tsc/vitest/src/jsx/jsx-dev-runtime.d.ts +0 -3
  134. package/out-tsc/vitest/src/jsx/jsx-dev-runtime.d.ts.map +0 -1
  135. package/out-tsc/vitest/src/jsx/jsx-runtime.d.ts +0 -4
  136. package/out-tsc/vitest/src/jsx/jsx-runtime.d.ts.map +0 -1
  137. package/out-tsc/vitest/src/mocker/index.d.ts +0 -2
  138. package/out-tsc/vitest/src/mocker/index.d.ts.map +0 -1
  139. package/out-tsc/vitest/src/mocker/registry.d.ts +0 -6
  140. package/out-tsc/vitest/src/mocker/registry.d.ts.map +0 -1
  141. package/out-tsc/vitest/src/mocker/types.d.ts +0 -6
  142. package/out-tsc/vitest/src/mocker/types.d.ts.map +0 -1
  143. package/out-tsc/vitest/src/namespace.d.ts +0 -18
  144. package/out-tsc/vitest/src/namespace.d.ts.map +0 -1
  145. package/out-tsc/vitest/src/polyfills.d.ts +0 -11
  146. package/out-tsc/vitest/src/polyfills.d.ts.map +0 -1
  147. package/out-tsc/vitest/src/render/ErrorBoundary.d.ts +0 -17
  148. package/out-tsc/vitest/src/render/ErrorBoundary.d.ts.map +0 -1
  149. package/out-tsc/vitest/src/render/TestComponentOverlay.d.ts +0 -3
  150. package/out-tsc/vitest/src/render/TestComponentOverlay.d.ts.map +0 -1
  151. package/out-tsc/vitest/src/render/cleanup.d.ts +0 -2
  152. package/out-tsc/vitest/src/render/cleanup.d.ts.map +0 -1
  153. package/out-tsc/vitest/src/render/index.d.ts +0 -6
  154. package/out-tsc/vitest/src/render/index.d.ts.map +0 -1
  155. package/out-tsc/vitest/src/render/setup.d.ts +0 -2
  156. package/out-tsc/vitest/src/render/setup.d.ts.map +0 -1
  157. package/out-tsc/vitest/src/render/types.d.ts +0 -12
  158. package/out-tsc/vitest/src/render/types.d.ts.map +0 -1
  159. package/out-tsc/vitest/src/runner/context.d.ts +0 -10
  160. package/out-tsc/vitest/src/runner/context.d.ts.map +0 -1
  161. package/out-tsc/vitest/src/runner/errors.d.ts +0 -11
  162. package/out-tsc/vitest/src/runner/errors.d.ts.map +0 -1
  163. package/out-tsc/vitest/src/runner/factory.d.ts +0 -3
  164. package/out-tsc/vitest/src/runner/factory.d.ts.map +0 -1
  165. package/out-tsc/vitest/src/runner/hooks.d.ts +0 -4
  166. package/out-tsc/vitest/src/runner/hooks.d.ts.map +0 -1
  167. package/out-tsc/vitest/src/runner/index.d.ts +0 -5
  168. package/out-tsc/vitest/src/runner/index.d.ts.map +0 -1
  169. package/out-tsc/vitest/src/runner/runSuite.d.ts +0 -7
  170. package/out-tsc/vitest/src/runner/runSuite.d.ts.map +0 -1
  171. package/out-tsc/vitest/src/runner/types.d.ts +0 -18
  172. package/out-tsc/vitest/src/runner/types.d.ts.map +0 -1
  173. package/out-tsc/vitest/src/screen/index.d.ts +0 -8
  174. package/out-tsc/vitest/src/screen/index.d.ts.map +0 -1
  175. package/out-tsc/vitest/src/spy/index.d.ts +0 -2
  176. package/out-tsc/vitest/src/spy/index.d.ts.map +0 -1
  177. package/out-tsc/vitest/src/symbolicate.d.ts +0 -17
  178. package/out-tsc/vitest/src/symbolicate.d.ts.map +0 -1
  179. package/out-tsc/vitest/src/ui/ReadyScreen.d.ts +0 -2
  180. package/out-tsc/vitest/src/ui/ReadyScreen.d.ts.map +0 -1
  181. package/out-tsc/vitest/src/ui/WrongEnvironmentScreen.d.ts +0 -2
  182. package/out-tsc/vitest/src/ui/WrongEnvironmentScreen.d.ts.map +0 -1
  183. package/out-tsc/vitest/src/ui/index.d.ts +0 -2
  184. package/out-tsc/vitest/src/ui/index.d.ts.map +0 -1
  185. package/out-tsc/vitest/src/ui/state.d.ts +0 -20
  186. package/out-tsc/vitest/src/ui/state.d.ts.map +0 -1
  187. package/out-tsc/vitest/src/userEvent/index.d.ts +0 -6
  188. package/out-tsc/vitest/src/userEvent/index.d.ts.map +0 -1
  189. package/out-tsc/vitest/src/utils/dev-server.d.ts +0 -2
  190. package/out-tsc/vitest/src/utils/dev-server.d.ts.map +0 -1
  191. package/out-tsc/vitest/src/utils/emitter.d.ts +0 -16
  192. package/out-tsc/vitest/src/utils/emitter.d.ts.map +0 -1
  193. package/out-tsc/vitest/src/waitFor.d.ts +0 -21
  194. package/out-tsc/vitest/src/waitFor.d.ts.map +0 -1
  195. package/out-tsc/vitest/tsconfig.spec.tsbuildinfo +0 -1
  196. package/out-tsc/vitest/vite.config.d.ts +0 -3
  197. package/out-tsc/vitest/vite.config.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"disableHMRWhenReady.d.ts","sourceRoot":"","sources":["../src/disableHMRWhenReady.ts"],"names":[],"mappings":"AAEA,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,IAAI,EACnB,WAAW,EAAE,MAAM,EACnB,UAAU,SAAK,iBA6BhB"}
1
+ {"version":3,"file":"disableHMRWhenReady.d.ts","sourceRoot":"","sources":["../src/disableHMRWhenReady.ts"],"names":[],"mappings":"AAIA,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,IAAI,EACnB,WAAW,EAAE,MAAM,EACnB,UAAU,SAAK,iBAmChB"}
@@ -1,4 +1,5 @@
1
- import { Platform } from "react-native";
1
+ import { Platform } from 'react-native';
2
+ const HMR_SETUP_ERROR = 'Expected HMRClient.setup() call at startup.';
2
3
  export function disableHMRWhenReady(disable, retriesLeft, retryDelay = 10) {
3
4
  return new Promise((resolve, reject) => {
4
5
  if (Platform.OS === 'web') {
@@ -12,12 +13,17 @@ export function disableHMRWhenReady(disable, retriesLeft, retryDelay = 10) {
12
13
  resolve();
13
14
  }
14
15
  catch (error) {
15
- if (remaining > 0 &&
16
- error instanceof Error &&
17
- error.message.includes('Expected HMRClient.setup() call at startup.')) {
16
+ const isMissingHMRSetupError = error instanceof Error && error.message.includes(HMR_SETUP_ERROR);
17
+ if (remaining > 0 && isMissingHMRSetupError) {
18
18
  setTimeout(() => attempt(remaining - 1), retryDelay);
19
19
  return;
20
20
  }
21
+ // Expo's metro runtime does not guarantee that React Native's HMRClient
22
+ // is initialized, so disabling HMR is best-effort in that environment.
23
+ if (isMissingHMRSetupError) {
24
+ resolve();
25
+ return;
26
+ }
21
27
  reject(error);
22
28
  }
23
29
  }
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import './polyfills.js';
2
2
  import './globals.js';
3
+ export { createElement } from './jsx/jsx-runtime.js';
3
4
  export { UI as ReactNativeHarness } from './ui/index.js';
4
5
  export * from './spy/index.js';
5
6
  export * from './expect/index.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,CAAC;AACxB,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,EAAE,IAAI,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACzD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,CAAC;AACxB,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,EAAE,IAAI,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACzD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC"}
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import './polyfills.js';
2
2
  import './globals.js';
3
+ export { createElement } from './jsx/jsx-runtime.js';
3
4
  export { UI as ReactNativeHarness } from './ui/index.js';
4
5
  export * from './spy/index.js';
5
6
  export * from './expect/index.js';
@@ -16,7 +16,17 @@ const HMRClientModule = require('react-native/Libraries/Utilities/HMRClient');
16
16
  const HMRClient = 'default' in HMRClientModule ? HMRClientModule.default : HMRClientModule;
17
17
  // Wait for HMRClient to be initialized
18
18
  setTimeout(() => {
19
- void disableHMRWhenReady(() => HMRClient.disable(), 50).then(() => getClient().then((client) => client.rpc.reportReady(getDeviceDescriptor())));
19
+ void (async () => {
20
+ try {
21
+ await disableHMRWhenReady(() => HMRClient.disable(), 50);
22
+ const client = await getClient();
23
+ const deviceDescriptor = getDeviceDescriptor();
24
+ await client.rpc.reportReady(deviceDescriptor);
25
+ }
26
+ catch (error) {
27
+ console.error('Failed to initialize React Native Harness', error);
28
+ }
29
+ })();
20
30
  });
21
31
  // Re-throw fatal errors
22
32
  ErrorUtils.setGlobalHandler((error) => {
@@ -1,4 +1,6 @@
1
- export declare const Fragment: import("react").ExoticComponent<import("react").FragmentProps>;
1
+ import * as React from 'react';
2
+ export declare const Fragment: React.ExoticComponent<React.FragmentProps>;
2
3
  export declare function jsx(type: React.ElementType, props: unknown, key?: React.Key): React.ReactElement;
3
4
  export declare function jsxs(type: React.ElementType, props: unknown, key?: React.Key): React.ReactElement;
5
+ export declare function createElement(type: React.ElementType, props?: Record<string, unknown> | null, ...children: React.ReactNode[]): React.ReactElement;
4
6
  //# sourceMappingURL=jsx-runtime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"jsx-runtime.d.ts","sourceRoot":"","sources":["../../src/jsx/jsx-runtime.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,QAAQ,gEAA2B,CAAC;AAmBjD,wBAAgB,GAAG,CACjB,IAAI,EAAE,KAAK,CAAC,WAAW,EACvB,KAAK,EAAE,OAAO,EACd,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,GACd,KAAK,CAAC,YAAY,CAEpB;AAED,wBAAgB,IAAI,CAClB,IAAI,EAAE,KAAK,CAAC,WAAW,EACvB,KAAK,EAAE,OAAO,EACd,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,GACd,KAAK,CAAC,YAAY,CAEpB"}
1
+ {"version":3,"file":"jsx-runtime.d.ts","sourceRoot":"","sources":["../../src/jsx/jsx-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,eAAO,MAAM,QAAQ,4CAA2B,CAAC;AAmBjD,wBAAgB,GAAG,CACjB,IAAI,EAAE,KAAK,CAAC,WAAW,EACvB,KAAK,EAAE,OAAO,EACd,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,GACd,KAAK,CAAC,YAAY,CAEpB;AAED,wBAAgB,IAAI,CAClB,IAAI,EAAE,KAAK,CAAC,WAAW,EACvB,KAAK,EAAE,OAAO,EACd,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,GACd,KAAK,CAAC,YAAY,CAEpB;AAED,wBAAgB,aAAa,CAC3B,IAAI,EAAE,KAAK,CAAC,WAAW,EACvB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,EACtC,GAAG,QAAQ,EAAE,KAAK,CAAC,SAAS,EAAE,GAC7B,KAAK,CAAC,YAAY,CAQpB"}
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { View } from 'react-native';
2
3
  import * as ReactJSXRuntime from 'react/jsx-runtime';
3
4
  import { getHarnessGlobal } from '../globals.js';
@@ -17,3 +18,10 @@ export function jsx(type, props, key) {
17
18
  export function jsxs(type, props, key) {
18
19
  return wrap(type, props, key, true);
19
20
  }
21
+ export function createElement(type, props, ...children) {
22
+ const disableViewFlattening = getHarnessGlobal().disableViewFlattening;
23
+ if (disableViewFlattening && type === View) {
24
+ props = { ...props, collapsable: false };
25
+ }
26
+ return React.createElement(type, props, ...children);
27
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"TestComponentOverlay.d.ts","sourceRoot":"","sources":["../../src/render/TestComponentOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAqBzC,eAAO,MAAM,oBAAoB,QAAO,KAAK,CAAC,YAAY,GAAG,IAqC5D,CAAC"}
1
+ {"version":3,"file":"TestComponentOverlay.d.ts","sourceRoot":"","sources":["../../src/render/TestComponentOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAqBzC,eAAO,MAAM,oBAAoB,QAAO,KAAK,CAAC,YAAY,GAAG,IAyC5D,CAAC"}
@@ -44,11 +44,10 @@ export const TestComponentOverlay = () => {
44
44
  store.getState().setOnLayoutCallback(null);
45
45
  }
46
46
  };
47
- return (_jsx(View, { style: styles.overlay, onLayout: handleLayout, children: _jsx(ErrorBoundary, { children: element }) }, key));
47
+ return (_jsx(View, { style: [StyleSheet.absoluteFill, styles.overlay], onLayout: handleLayout, children: _jsx(ErrorBoundary, { children: element }) }, key));
48
48
  };
49
49
  const styles = StyleSheet.create({
50
50
  overlay: {
51
- ...StyleSheet.absoluteFillObject,
52
51
  backgroundColor: '#0a1628',
53
52
  zIndex: 1000,
54
53
  },