Skip to content

Query for child components [JS -> ObjC binding] #126

@jaygarcia

Description

@jaygarcia

If I wanted to get a reference to the underlying Component for a Touchable child, how does one do this?

<TouchableHighlight underlayColor="rgb(210, 230, 255)" onPress={this.onPress}>
    <Text>ClickMe</Text>
</TouchableHighlight>

I've read
http://facebook.github.io/react/tips/communicate-between-components.html

... but it very much speaks to the data that represents the div, not the div itself.

How do i get a reference to the actual JavaScript -> ObjC binding node for the Text element above in this.onPress?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions