You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.
I'm trying to create a custom button component in a React Native / Expo project. I like to create base components and then compose others from that base by passing props. My ButtonBase component is working as expected, but when I try to extend it to create an OutlineButton component and change the background color via sx :pressed, it is not picking up the style override.
Originally I was trying to just modify the GlueStack Button component but I was running into issue with style overrides which led me to just trying to implement my own from scratch like this.
I'm also further trying to extend OutlineButton to create a CompactOutlineButton by just passing different px and py props and those are also having no effect...
@gluestack-style/react: 0.1.33
react-native: 0.71.8
expo: 48.0.6
I'm trying to create a custom button component in a React Native / Expo project. I like to create base components and then compose others from that base by passing props. My
ButtonBase
component is working as expected, but when I try to extend it to create anOutlineButton
component and change the background color viasx :pressed
, it is not picking up the style override.Here is the
ButtonBase
code...and here is the
OutlineButton
code...All of the styled overrides are working aside from the
:pressed
override in thesx
propI have a possibly related issue filed in the gluestack ui repo...
gluestack/gluestack-ui#843
Originally I was trying to just modify the GlueStack Button component but I was running into issue with style overrides which led me to just trying to implement my own from scratch like this.
I'm also further trying to extend
OutlineButton
to create aCompactOutlineButton
by just passing differentpx
andpy
props and those are also having no effect...UPDATE: I also tried swapping out the numeric values for
px
andpy
for spacer tokens from the theme but that didn't yield any different results.The text was updated successfully, but these errors were encountered: