react-native/Libraries/Text
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
..
RCTText.xcodeproj CI for iOS fixed 2018-01-12 07:46:17 -08:00
Text The Great File Renaming in RCTText 2017-12-19 20:14:00 -08:00
TextInput Typos in comments and log messages 2018-01-12 22:18:45 -08:00
RCTConvert+Text.h iOS: Introduce spellCheck prop to TextInput 2016-11-25 04:28:28 -08:00
RCTConvert+Text.m iOS: Introduce spellCheck prop to TextInput 2016-11-25 04:28:28 -08:00
RCTFontAttributes.h iOS: Support allowFontScaling on TextInput 2017-10-01 21:45:33 -07:00
RCTFontAttributes.m iOS: Support allowFontScaling on TextInput 2017-10-01 21:45:33 -07:00
RCTFontAttributesDelegate.h iOS: Support allowFontScaling on TextInput 2017-10-01 21:45:33 -07:00
RCTRawTextShadowView.h The Great File Renaming in RCTText 2017-12-19 20:14:00 -08:00
RCTRawTextShadowView.m The Great File Renaming in RCTText 2017-12-19 20:14:00 -08:00
RCTRawTextViewManager.h The Great File Renaming in RCTText 2017-12-19 20:14:00 -08:00
RCTRawTextViewManager.m The Great File Renaming in RCTText 2017-12-19 20:14:00 -08:00
Text.js Generalization of `isInAParentText` context 2018-01-14 20:03:32 -08:00
TextProps.js RN: Create TextProps (Flow for Text Props) 2018-01-05 23:30:22 -08:00
TextStylePropTypes.js Update remaining PropTypes references 2017-06-12 16:03:09 -07:00
TextUpdateTest.js @allow-large-files Flow v0.54.0 2017-09-06 03:33:43 -07:00