mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Don't check native view configs in bridgeless mode
Summary: `verifyComponentAttributeEquivalence` checks the new JS view configs against what we get from native at runtime (in dev only). This breaks in bridgeless mode because there is no paper UIManager to ask for the viewconfigs from; this diff uses the flag from D15721940 to skip this check. Reviewed By: fkgozali Differential Revision: D15722127 fbshipit-source-id: d9227107e0ff7814c34beaae6461bb8232699c94
This commit is contained in:
committed by
Facebook Github Bot
parent
4e7155ee53
commit
422472e5d9
@@ -42,7 +42,7 @@ function verifyComponentAttributeEquivalence(
|
||||
componentName: string,
|
||||
config: ReactNativeBaseComponentViewConfig<>,
|
||||
) {
|
||||
if (__DEV__) {
|
||||
if (__DEV__ && !global.RN$Bridgeless) {
|
||||
const nativeAttributes = getNativeComponentAttributes(componentName);
|
||||
|
||||
['validAttributes', 'bubblingEventTypes', 'directEventTypes'].forEach(
|
||||
|
||||
Reference in New Issue
Block a user