Skip to content

Commit

Permalink
Default to native view configs in bridged mode and to static view con…
Browse files Browse the repository at this point in the history
…figs 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
  • Loading branch information
dmytrorykun authored and facebook-github-bot committed Oct 2, 2023
1 parent efcc14d commit e103dca
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions template/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,4 @@ import {AppRegistry} from 'react-native';
import App from './App';
import {name as appName} from './app.json';

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};
},
);
}

AppRegistry.registerComponent(appName, () => App);

0 comments on commit e103dca

Please sign in to comment.