michangarrito/apps/backend/node_modules/react-native/Libraries/NativeComponent/ViewConfigIgnore.js
rckrdmrd 48dea7a5d0 feat: Initial commit - michangarrito
Marketplace móvil para negocios locales mexicanos.

Estructura inicial:
- apps/backend (NestJS API)
- apps/frontend (React Web)
- apps/mobile (Expo/React Native)
- apps/mcp-server (Claude MCP Server)
- apps/whatsapp-service (WhatsApp Business API)
- database/ (PostgreSQL DDL)
- docs/ (Documentación)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 04:41:02 -06:00

52 lines
1.6 KiB
JavaScript

/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
* @format
*/
import Platform from '../Utilities/Platform';
const ignoredViewConfigProps = new WeakSet<{...}>();
/**
* Decorates ViewConfig values that are dynamically injected by the library,
* react-native-gesture-handler. (T45765076)
*/
export function DynamicallyInjectedByGestureHandler<T: {...}>(object: T): T {
ignoredViewConfigProps.add(object);
return object;
}
/**
* On iOS, ViewManager event declarations generate {eventName}: true entries
* in ViewConfig valueAttributes. These entries aren't generated for Android.
* This annotation allows Static ViewConfigs to insert these entries into
* iOS but not Android.
*
* In the future, we want to remove this platform-inconsistency. We want
* to set RN$ViewConfigEventValidAttributesDisabled = true server-side,
* so that iOS does not generate validAttributes from event props in iOS RCTViewManager,
* since Android does not generate validAttributes from events props in Android ViewManager.
*
* TODO(T110872225): Remove this logic, after achieving platform-consistency
*/
export function ConditionallyIgnoredEventHandlers<
const T: {+[name: string]: true},
>(value: T): T | void {
if (Platform.OS === 'ios') {
return value;
}
return undefined;
}
export function isIgnored(value: mixed): boolean {
if (typeof value === 'object' && value != null) {
return ignoredViewConfigProps.has(value);
}
return false;
}