Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 28474

React Native TouchableWithoutFeedback onLongPress wont work some android devices

$
0
0

TouchableWithoutFeedback onLongPress props wont work some android devices, my Rn version: 59.1, ios is work but some android device wont work onLongPress prop my TouchableWithoutFeedback is

<TouchableWithoutFeedback
      disabled={this.props.disabled}
      onLongPress={this.props.onLongPress}
      delayLongPress={2000}
      onPress={this.props.onPress}
      onPressIn={this.pressIn.bind(this)}
      onPressOut={this.pressOut.bind(this)}>
        <Animated.View style={[styles.view, this.state.style, {backgroundColor: backgroundColor}]}>
            {this.props.leftImage != undefined ? this._getImage('leftImage') : null }
            <Text
              numberOfLines={1}
              style={[styles.text, this.props.styleText]}>
                {this.props.text}
            </Text>
            {this.props.rightImage != undefined ? this._getImage('rightImage') : null }
            {this.props.children}
        </Animated.View>
    </TouchableWithoutFeedback>

Viewing all articles
Browse latest Browse all 28474

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>