react-native/Libraries/Components
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
..
AccessibilityInfo Migrate to new documentation format 2017-11-16 17:04:45 -08:00
ActivityIndicator Migrate to new documentation format 2017-11-16 17:04:45 -08:00
AppleTV Update remaining PropTypes references 2017-06-12 16:03:09 -07:00
CheckBox Docs: Add example to CheckBox documentation 2017-11-07 11:06:44 -08:00
Clipboard Remove deprecated APIs and modules 2016-10-11 07:43:52 -07:00
DatePicker - Adding locale prop to DatePickerIOS 2017-11-04 14:40:24 -07:00
DatePickerAndroid Fixed a typo in open function documentation 2017-04-18 15:36:20 -07:00
DrawerAndroid Expose StatusBar height and fix StatusBar example - T13591448 2017-08-15 11:11:39 -07:00
Keyboard Wrap textInput with KeyboardAvoidingView 2018-01-10 13:24:22 -08:00
MaskedView Wrong name 2017-09-29 15:03:23 -07:00
Navigation Typos in comments and log messages 2018-01-12 22:18:45 -08:00
Picker Upgrade fbsource/xplat/js to Flow v0.53.0 2017-08-17 18:45:01 -07:00
ProgressBarAndroid Removed ProgressBarAndroid.android deprecation warning 2017-10-18 17:01:04 -07:00
ProgressViewIOS Fix Flow errors at declaration of most major library components 2017-10-20 03:50:25 -07:00
RefreshControl Fix Flow errors at declaration of most major library components 2017-10-20 03:50:25 -07:00
SafeAreaView Fix typo in SafeArea documentation 2017-11-14 10:32:15 -08:00
ScrollView Typos in comments and log messages 2018-01-12 22:18:45 -08:00
SegmentedControlIOS Fix Flow errors at declaration of most major library components 2017-10-20 03:50:25 -07:00
Slider Docs: Improve documentation of Slider (add example) 2017-10-31 09:42:07 -07:00
StatusBar Typos in comments and log messages 2018-01-12 22:18:45 -08:00
Switch Fix Flow errors at declaration of most major library components 2017-10-20 03:50:25 -07:00
TabBarIOS Fix $FlowFixMes from TabBarIOS 2017-11-01 19:17:11 -07:00
TextInput Generalization of `isInAParentText` context 2018-01-14 20:03:32 -08:00
TimePickerAndroid Add TimePicker modes 2017-10-08 12:38:45 -07:00
ToastAndroid Fix typo 2017-09-05 12:48:16 -07:00
ToolbarAndroid Replace React.createClass with create-react-class 2017-07-07 14:36:01 -07:00
Touchable Tweak FIGListItem layout 2017-12-18 18:31:19 -08:00
UnimplementedViews Upgrade fbsource/xplat/js to Flow v0.53.0 2017-08-17 18:45:01 -07:00
View Generalization of `isInAParentText` context 2018-01-14 20:03:32 -08:00
ViewPager Add description to require a key for each child in ViewPageAndroid 2017-10-18 01:00:15 -07:00
WebView Run eslint --fix 2017-10-09 17:46:44 -07:00
Button.js Apple TV: TouchableOpacity and Button need hasTVPreferredFocus support 2017-10-18 12:18:12 -07:00
LazyRenderer.js Replace React.createClass with create-react-class 2017-07-07 14:36:01 -07:00
ScrollResponder.js Modernize ScrollResponder.js 2018-01-05 12:46:40 -08:00
StaticContainer.react.js Upgrade fbsource/xplat/js to Flow v0.53.0 2017-08-17 18:45:01 -07:00
StaticRenderer.js Upgrade fbsource/xplat/js to Flow v0.53.0 2017-08-17 18:45:01 -07:00
Subscribable.js [ReactNative] clean lint for Libraries/Components 2015-05-18 15:54:07 -08:00