Skip to content

iOS app open/close transition shows shadow on SegmentedButtons #4662

Open
@astrojams1

Description

@astrojams1

Current behaviour

I am rendering a Segmented Button (basic, vanilla implementation)
When I open or close the iOS app, I see a gradient within one of the segments.

Expected behaviour

No gradient.

How to reproduce?

Use iOS
Add a segmented button to your view.
Close or open the iOS app to show the gradient.

Preview

Implementation:
<SegmentedButtons value={buttonValue} onValueChange={setButtonValue} buttons={[ { value: 'consumed', label: 'Consumed', showSelectedCheck: true }, { value: 'remaining', label: 'Remaining', showSelectedCheck: true }, ]} density="small" />

Screenshot:
Image

What have you tried so far?

Explicitly setting a background color with
style={[styles.group, { backgroundColor: theme.colors.background }]}

Your Environment

software version
ios 16.0
react-native 0.76.3
react-native-paper ^5.12.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions