Skip to content

FAB.Menu floods the iOS console with shadow warnings while it animates #5344

Backlog

Description

@Doberjohn

Current behaviour

Opening and closing a FAB.Menu on iOS logs about 74 warnings like:

WARN (ADVICE) View #... of type RCTViewComponentView has a shadow set but cannot calculate shadow efficiently

from two views: two on mount, then one per animation frame while the menu opens or closes, in debug and in Release. The trigger renders with a transparent background and paints its color on overlay layers, so the elevated Surface around it has no solid background to derive the shadow from. It looks right, but the shadow is probably also recomputed every frame.

Expected behaviour

No warning, for example by giving the view that carries the shadow a solid background or an explicit shadow path.

How to reproduce?

  1. Render:
<FAB.Menu
  expanded={expanded}
  onDismiss={() => setExpanded(false)}
  trigger={{ icon: 'pencil', onPress: () => setExpanded(true) }}
  items={[{ icon: 'email', label: 'Send', onPress: () => {} }]}
/>
  1. Open the menu and close it, with the Metro console open.

Preview

n/a

What have you tried so far?

The same count on 6.0.0-alpha.4. No other component produced the warning in the same run.

Your Environment

software version
ios iOS 27.2 (iPhone 18 Pro simulator)
android n/a
react-native 0.88.1 (New Architecture)
react-native-paper 6.0.0-alpha.5 (main at 56434eb)
node n/a
npm or yarn n/a
expo sdk 58

Activity

  1. added this to the 6.1.0 milestone on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions