Skip to content

Allowlist yoga dimension/position/flex props for native animated backend#5

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/lazyload-removal
Draft

Allowlist yoga dimension/position/flex props for native animated backend#5
Copilot wants to merge 2 commits into
mainfrom
copilot/lazyload-removal

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 8, 2026

Port of facebook/react-native#56375. Adds yoga layout properties to the native animation allowlist behind the useSharedAnimatedBackend feature flag.

Changes

  • NativeAnimatedAllowlist.js: Conditionally spread dimension (height, width, min*, max*), position (top, bottom, left, right, start, end), and flex props into SUPPORTED_STYLES when useSharedAnimatedBackend() is enabled
  • Supporting stubs: Minimal ReactNativeFeatureFlags.js and AnimatedProps.js type definitions to satisfy imports
// New allowlisted props, gated behind feature flag
...(ReactNativeFeatureFlags.useSharedAnimatedBackend()
  ? {
      height: true, maxHeight: true, maxWidth: true,
      minHeight: true, minWidth: true, width: true,
      bottom: true, end: true, left: true,
      right: true, start: true, top: true,
      flex: true,
    }
  : {}),

…atureflag is enabled

Agent-Logs-Url: https://github.com/rachel11026725/vscode-extension-samples/sessions/82cc686b-d6ec-4cf0-b87d-a9b176554763

Co-authored-by: rachel11026725 <73807073+rachel11026725@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove lazy load for better performance Allowlist yoga dimension/position/flex props for native animated backend Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants