Valentin Shergin 52648326e6 Generalization of isInAParentText context
Summary:
Currently `isInAParentText` context works as imaginary `isInAAncestorText` context (not like a real `isInAParentText`).
Let's imagine we have hierarchy like:
`View -> Text -> Text* -> View* -> Text* -> Text* -> View*`
With current implementation all nodes marked with asterisk have `isInAParentText` context, which is incorrect (because some of them actually in View context).

With the new implemetations it will work like this:
`View -> Text -> Text* -> View* -> Text -> Text* -> View*`
So, only nodes which have <Text> (or <TextInput>) as a parent will have `isInAParentText` context.

This change allows to select proper `Text` vs. `VirtualText` component in cases where <Text> and <View> components can interleave each other.

Reviewed By: sahrens

Differential Revision: D6690495

fbshipit-source-id: f7c59b23d0eaf68a1d08036b858d99c9547f7878
2018-01-14 20:03:32 -08:00
..
2017-12-13 16:19:21 -08:00
2017-12-19 19:46:06 -08:00
2017-12-06 17:34:26 -08:00
2018-01-08 17:04:29 -08:00
2018-01-08 17:04:29 -08:00
2017-09-08 14:46:14 -07:00
2018-01-12 22:18:45 -08:00
2017-09-21 15:01:52 -07:00
2018-01-08 17:04:29 -08:00
2017-11-10 21:15:48 -08:00
2018-01-08 17:04:29 -08:00
2018-01-12 22:18:45 -08:00
2017-10-09 17:46:44 -07:00
2017-09-06 03:33:43 -07:00