Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ANDROID: Disabled background color incorrectly overrides buttonStyle background color #3985

Open
@Mihai-github

Description

@Mihai-github

Is there an existing issue for this?

  • I have searched the existing issues

Explain what you did

Change the button background color based on the disabled value

Expected behavior

The button background color changes when disabled is false, using the background color added in buttonStyle.

Describe the bug

When the button is disabled, it correctly uses disabledStyle.backgroundColor. The issue is that when disabled becomes false, it doesn’t switch back to the background color from buttonStyle and keeps the one from disabledStyle. Even w/o setting up the disabledStyle background color, it defaults to the default background color of a button when disabled, but not to the one used in button style.

Steps To Reproduce

1. Create a simple button.2. Use useState to toggle disabled between true and false.3. Set one background color in buttonStyle and another in disabledStyle.Expected:Background color switches between buttonStyle and disabledStyle based on the disabled state.Actual:Background color remains the one from disabledStyle even when disabled is false.

Screenshots

No response

Your Environment

React Native Elements Env Info

Global Dependencies:

No related dependency found

Local Dependencies:

  • @rneui/base : edge
  • @rneui/themed : edge
  • react : 19.1.0
  • react-native : 0.80.2
  • @types/react : ^19.1.0
  • @types/react-native : 0.73.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp