diff --git a/packages/rn-tester/js/RNTesterAppShared.js b/packages/rn-tester/js/RNTesterAppShared.js index 3cd8e9d9afad5a..0949aafca08d92 100644 --- a/packages/rn-tester/js/RNTesterAppShared.js +++ b/packages/rn-tester/js/RNTesterAppShared.js @@ -29,6 +29,15 @@ import {BackHandler, StyleSheet, View, useColorScheme} from 'react-native'; // RNTester App currently uses in memory storage for storing navigation state +if (global.RN$Bridgeless) { + require('react-native/Libraries/NativeComponent/NativeComponentRegistry').setRuntimeConfigProvider( + name => { + // In bridgeless mode, never load native ViewConfig. + return {native: false, strict: false, verify: false}; + }, + ); +} + const RNTesterApp = (): React.Node => { const [state, dispatch] = React.useReducer( RNTesterNavigationReducer,