Switches to TouchableOpacity instead of TouchableWithoutFeedback
The use of TouchableWithoutFeedback is discouraged: ‘Do not use unless you have a very good reason. All elements that respond to press should have a visual feedback when touched.’
Adds the accessibilityIgnoresInvertColors prop to prevent the flag from getting inverted
A few small improvements for accessibility:
TouchableOpacity
instead ofTouchableWithoutFeedback
TouchableWithoutFeedback
is discouraged: ‘Do not use unless you have a very good reason. All elements that respond to press should have a visual feedback when touched.’accessibilityIgnoresInvertColors
prop to prevent the flag from getting inverted