react-native icon indicating copy to clipboard operation
react-native copied to clipboard

onResponderRelease not works on android devices

Open 12d opened this issue 10 years ago • 5 comments

Exactly speaking, onResponderRelease is not triggered on Android if it nested with Text, but works well with IOS devices. Here is my quite simple code:

render (){
        return (
            <Text>
            <Image onResponderRelease={()=>{alert(1)}} onStartShouldSetResponder={()=>true} source={{height: 100, width: 100, uri: 'http://dimg04.c-ctrip.com/images//u00l0400000000dq8C668.jpg'}}/>
            </Text>
        )
}

12d avatar Jun 17 '16 07:06 12d

@facebook-github-bot label Android

charpeni avatar Jun 17 '16 19:06 charpeni

Same issue on Lenovo Tab Only

antoxi4 avatar Aug 16 '16 21:08 antoxi4

I think we need more information - could you provide a project that reproduces this on rnplay.org? I am going to close this issue but please feel free to reopen if you do have that info.

lacker avatar Nov 29 '16 22:11 lacker

Hi @lacker . Here is a little example of onResponderRelease working on IOS but not on Android. The alert is shown on the release event on IOS, but not on Android. https://rnplay.org/apps/2rkKsA

Piwaii avatar Dec 01 '16 14:12 Piwaii

Having the same issue on RN 0.43.3.

zachrnolan avatar Apr 28 '17 18:04 zachrnolan