Closed gremlin529 closed 11 months ago
Actually the problem here is that you want the icon to have separate colours for each states, that actually needs to be accomplished with the customise function like so:
const CustomIconButton = Button.customize({
subtle: {iconColor: 'red', pressed: {iconColor: 'orange'}},
});
closed as this can be accomplished with the above
Willing to submit a PR to fix?
Requested priority
High
Products/applications affected
Sync Furn, in ButtonIconTestSelection.tsx add the following lines of code around line 30 (just under
<View style={testContentrootViewstyle}>
result:
Now run the app and you'll see on iOS That this icon doesn't show a pressed state when clicked on, trying an SVG Icon you'll see it works fine, also just text in Subtle works fine.
Package version(s)
yarn button 35.9
OS version(s)
17.0
Platform
Xcode version
No response
Please provide a reproduction of the bug
as above
Actual behavior
no click state shown
Expected behavior
show click state