react-native/Libraries/Components/View
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
..
PlatformViewPropTypes.android.js Adds hook for platform-specific View props 2017-07-24 12:26:58 -07:00
PlatformViewPropTypes.ios.js Adds hook for platform-specific View props 2017-07-24 12:26:58 -07:00
ReactNativeStyleAttributes.js iOS: Implement border(Top|Bottom)(Start|End)Radius and border(Start|End)(Color|Width) RN styles 2017-10-18 19:33:31 -07:00
ReactNativeViewAttributes.js Adding support for custom accessibility actions on iOS. 2017-12-04 23:31:50 -08:00
ShadowPropTypesIOS.js Improve view props and style stuff. 2017-06-01 01:15:42 -07:00
View.js Generalization of `isInAParentText` context 2018-01-14 20:03:32 -08:00
View.js.flow Added Flow types for React Native host components 2017-09-15 16:22:04 -07:00
ViewAccessibility.js RN: Export Accessibility Prop Types 2017-02-02 23:28:31 -08:00
ViewContext.js Generalization of `isInAParentText` context 2018-01-14 20:03:32 -08:00
ViewPropTypes.js Adding support for custom accessibility actions on iOS. 2017-12-04 23:31:50 -08:00
ViewStylePropTypes.js iOS: Implement border(Top|Bottom)(Start|End)Radius and border(Start|End)(Color|Width) RN styles 2017-10-18 19:33:31 -07:00