Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested TouchableHighlight components doesn't work #469

Closed
vkjr opened this issue Apr 3, 2019 · 0 comments · Fixed by #471

Comments

@vkjr
Copy link
Member

commented Apr 3, 2019

Code example:

  <TouchableHighlight
      style={{width: 200, height: 200, marginTop: 50}}
      onPress={()=> console.log("!!! YELLOW")}
      >
        <View style={{flex: 1, backgroundColor: "yellow"}} >
          <TouchableHighlight
          style={{width: 50, height: 50}}
          onPress={()=> console.log("!!! RED")}
          >
            <View style={{flex: 1, backgroundColor: "red"}} >
            </View>
          </TouchableHighlight>
        </View>
      </TouchableHighlight>

When internal TouchableHighlight pressed, there is no console output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.