Skip to content

badge action cannot change by state in dark mode #2465

Open
@phalera

Description

@phalera

Description

v1 badge action cannot change by state in dark mode

CodeSandbox/Snack link

as describes

Steps to reproduce

const [isMuted, setIsMuted]= useState(false)

<GluestackUIProvider colorMode=“dark”>
  <Pressable onPress={()=> setIsMuted(prev=>!prev)}>
    <Badge action={isMuted ? “muted” : “info”}>
      <BadgeText>test</BadgeText>
    </Badge>
  </Pressable>
</GluestackUIProvider>

gluestack-ui Version

1.1.51

Platform

  • Expo
  • React Native CLI
  • Next
  • Web
  • Android
  • iOS

Other Platform

No response

Additional Information

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggluestack-styleIssue related to gluestack-stylev1gluestack-ui v1

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions