react-native/ReactCommon/fabric
Ramanpreet Nara 7eb82f32a2 Implement onPress for Virtual Text nodes
Summary:
When text nodes are nested, as below, `onPress` handlers need to be correctly invoked:
```
render() {
  return (
    <Text onPress={() => console.warn('hi')}>
      hi
      <Text onPress={() => console.warn('ramanpreet')}>ramanpreet</Text>
    </Text>
  );
}
```

In the above example, clicking on "hi" should warn "hi", and clicking on "ramanpreet" should warn "ramanpreet". This diff implements that behaviour.

Reviewed By: shergin

Differential Revision: D9696905

fbshipit-source-id: 2daf24e76c3b3c37aa36cd1540e54876a367faf7
2018-09-10 11:41:36 -07:00
..
attributedstring Remember ShadowNode of RawText's parent in attribute string 2018-09-10 11:41:31 -07:00
components Setup event emitters for `TextShdowNode` and `ParagraphShadowNode` 2018-09-10 11:41:34 -07:00
core Fabric: Removing `ShadowNode::operator==` 2018-09-07 21:46:59 -07:00
debug Remove unused loads from build files. 2018-08-31 18:03:07 -07:00
events Remove unused loads from build files. 2018-08-31 18:03:07 -07:00
graphics Fabric: Fixed `colorComponentsFromColor` to able to accept empty color object 2018-09-07 11:17:53 -07:00
imagemanager Clean up import/include statements 2018-09-07 16:02:18 -07:00
sample Fabric: Introducing `ContextContainer` 2018-06-22 07:32:49 -07:00
textlayoutmanager Implement onPress for Virtual Text nodes 2018-09-10 11:41:36 -07:00
uimanager Fabric: Fixed possible crash due race condition during Surface unmounting 2018-09-07 23:48:02 -07:00