Skip to content

Utility prop _icon is not propagating to the child ButtonIcon as expected #1799

Open
@hristo87

Description

@hristo87

Description

I'm attempting to manipulate the ButtonIcon component via the utility prop _icon from within the Button component. However, the ButtonIcon component isn't receiving the passed props. Additionally, the utility prop _button doesn't appear to be functioning correctly, or perhaps I'm not using it properly. Note that in the example bellow i am using Lucide Icons, but its the same behaviour with the built-in ones. Everything with _text seems fine.

CodeSandbox/Snack link

No response

Steps to reproduce

  1. Create RN project.
  2. Add gluestack-ui and eject it
  3. Create a button component and try to use _icon prop within Button component

gluestack-ui Version

@gluestack-ui/themed - 1.1.6; @gluestack-ui/config - 1.1.2

Platform

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

Other Platform

No response

Additional Information

The button:

SCR-20240215-nkpr

The result:

SCR-20240215-nlhj

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggluestack-styleIssue related to gluestack-style

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions