trackColor.false
doesn't persist when Android Switch component is toggled
#23962
Labels
Bug
Component: Switch
Platform: Android
Android applications.
Resolution: Fixed
A PR that fixes this issue has been merged.
Resolution: Locked
This issue was locked by the bot.
Resolution: PR Submitted
A pull request with a fix has been provided.
🐛 Bug Report
**Note: ** This is related to #23956. I expect the same thing is causing both issues.
The switch component has a
trackColor
prop withtrue
andfalse
props within, to change the colour of the track when the switch is enabled and disabled respectively.When
trackColor.false
is set, it works initially but then reverts to the original grey colour when the switch is toggled on then off.To Reproduce
trackColor.false
on a Switch component on Android.Expected Behavior
The colour to not be reverted when the switch is toggled.
Code Example
Here's a test repo I made to showcase the issue: https://github.com/shaundon/switchdemo
Environment
The text was updated successfully, but these errors were encountered: