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:
Emily Janzer
2019-06-10 15:03:01 -07:00
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(