mirror of
https://github.com/status-im/react-native.git
synced 2025-01-12 18:44:25 +00:00
7eb82f32a2
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