3

I want to disable the "color blink" or "color flickering" effect that blackens the image when TouchableHighlight gets pressed.

Here is the screen render:

<TouchableHighlight onPress={this._onPressButton}>
                  <Image
                  source={require('../../img/fish.png')}
                  style={[styles.iconSize, styles.iconMarginRight]}/>
</TouchableHighlight>

How do i accomplish that?

Jacs
  • 1,437
  • 4
  • 21
  • 31

2 Answers2

18

Use TouchableWithoutFeedback or set activeOpacity to 1.0.

wmcbain
  • 1,099
  • 9
  • 16
2

If you must use TouchableHighlight

You can set the underlayColor property of TouchableHighlight Component

The default for this property is black.

Daniel
  • 331
  • 3
  • 10