Skip to content

Commit 3d0c497

Browse files
dmytrorykunfacebook-github-bot
authored andcommitted
Default to native view configs in bridged mode and to static view configs in bridgeless mode (#39704)
Summary: Pull Request resolved: facebook/react-native#39704 Default to native view configs in bridged mode and to static view configs in bridgeless mode. Remove `setRuntimeConfigProvider` calls from RNTester and from the Template. Changelog: [Internal] Reviewed By: RSNara Differential Revision: D49687252 fbshipit-source-id: 140e1c510ba3fbc153978b59c8bb4b4e35bc7571 Original-Commit: facebook/react-native@b27fab7
1 parent 5eb0503 commit 3d0c497

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

template/template/index.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,4 @@ import {AppRegistry} from 'react-native';
66
import App from './App';
77
import {name as appName} from './app.json';
88

9-
if (global.RN$Bridgeless) {
10-
require('react-native/Libraries/NativeComponent/NativeComponentRegistry').setRuntimeConfigProvider(
11-
name => {
12-
// In bridgeless mode, never load native ViewConfig.
13-
return {native: false, strict: false, verify: false};
14-
},
15-
);
16-
}
17-
189
AppRegistry.registerComponent(appName, () => App);

0 commit comments

Comments
 (0)