React-native-swipe-list-view: TouchableWithoutFeedback won't work

Created on 19 Jan 2018  路  5Comments  路  Source: jemise111/react-native-swipe-list-view

If TouchableWithoutFeedback is used instead of TouchableOpacity onPress callback is never called.

Most helpful comment

All 5 comments

Wrap whatever you're putting in there with a View.

@ch3nj I've actually done that before and thought that's the reason why it won't work. Turns out either of the two won't work ... I think I'd have to use the TouchableOpacity with activeOpacity={1} as a workaround.

Hey @Elijen could you post some code that you're using in your renderRow / renderItem function? Or a reproducible example I can try on my end? Thanks!

@jemise111, @ch3nj So apparently the issue is TouchableWithoutFeedback itself. See: https://github.com/facebook/react-native/issues/10180#issuecomment-298375648

Thanks for your replies though :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mohitmishra22 picture mohitmishra22  路  6Comments

jwilliamson-qb picture jwilliamson-qb  路  3Comments

kyangy picture kyangy  路  3Comments

bohdan145 picture bohdan145  路  6Comments

m-ruhl picture m-ruhl  路  6Comments