diff --git a/packages/bundler-metro/tsconfig.json b/packages/bundler-metro/tsconfig.json index 0d5c5349..403a9dfe 100644 --- a/packages/bundler-metro/tsconfig.json +++ b/packages/bundler-metro/tsconfig.json @@ -12,9 +12,6 @@ { "path": "../tools" }, - { - "path": "../bridge" - }, { "path": "../babel-preset" }, diff --git a/packages/bundler-metro/tsconfig.lib.json b/packages/bundler-metro/tsconfig.lib.json index fa1ce340..8f6398da 100644 --- a/packages/bundler-metro/tsconfig.lib.json +++ b/packages/bundler-metro/tsconfig.lib.json @@ -21,9 +21,6 @@ { "path": "../tools/tsconfig.lib.json" }, - { - "path": "../bridge/tsconfig.lib.json" - }, { "path": "../babel-preset/tsconfig.lib.json" } diff --git a/packages/runtime/src/react-native.d.ts b/packages/runtime/src/react-native.d.ts index 08411444..ea169d86 100644 --- a/packages/runtime/src/react-native.d.ts +++ b/packages/runtime/src/react-native.d.ts @@ -16,3 +16,17 @@ declare module 'react-native/Libraries/Core/Devtools/parseErrorStack' { }; export default function parseErrorStack(errorStack?: string): StackFrame[]; } + +declare module '*.png' { + import type { ImageSourcePropType } from 'react-native'; + + const value: ImageSourcePropType; + export default value; +} + +declare module '*.jpg' { + import type { ImageSourcePropType } from 'react-native'; + + const value: ImageSourcePropType; + export default value; +} diff --git a/packages/runtime/src/ui/ReadyScreen.tsx b/packages/runtime/src/ui/ReadyScreen.tsx index 29dd8ab4..09b2f066 100644 --- a/packages/runtime/src/ui/ReadyScreen.tsx +++ b/packages/runtime/src/ui/ReadyScreen.tsx @@ -1,142 +1,22 @@ -import { - View, - Text, - StyleSheet, - ActivityIndicator, - StatusBar, - Platform, -} from 'react-native'; import { useRunnerStatus } from './state.js'; import { TestComponentOverlay } from '../render/TestComponentOverlay.js'; +import { RunnerScreen } from './RunnerScreen.js'; require('../initialize.js'); export const ReadyScreen = () => { const status = useRunnerStatus(); + const statusText = + status === 'loading' + ? 'Loading...' + : status === 'idle' + ? 'Idle' + : 'Running...'; return ( - -