expo / expo/react-native-touchable-native-feedback-safe

When TouchableOpacity wraps a View, flex:1 in row doesn't stretch a touchable

Open
#2 0 comments 9 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
10
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Demo [https://snack.expo.io/@zubko/touchable-native-feedback-safe-issue-with-flex1-in-row
](https://snack.expo.io/@zubko/touchable-native-feedback-safe-issue-with-flex1-in-row)

screen shot 2018-10-22 at 12 46 55 pm
screen shot 2018-10-22 at 12 55 53 pm

There should be 3 red buttons, but there is only 1 on iOS and 2 on Android (since TouchableWithNativeFeedback works well when it doesn't have style and the View has it).

When TouchableOpacity has style prop then it works as expected.

So I think the View should be removed for a TouchableFallback

~~~js


{children}

~~~

(or at least when TouchableFallback is a TouchableOpacity)

but I'm not sure, maybe there are some important reasons why it is like?

~~~js



{children}

~~~

Is this component still used in Expo?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.