react-native/Libraries/Text
Spencer Ahrens 4ce03582a0 Improve Text perf
Summary:
public

Most apps create tons of text components but they are actually quite heavy because of the the Touchable mixin which requires binding tons of functions for every instance created.

This diff makes the binding lazy, so that the main handlers are only bound if there is a valid touch action configured (e.g. onPress), and the Touchable mixin functions are only bound the first time the node is actually touched and becomes the responder.

ScanLab testing shows 5-10% win on render time and memory for various products.

Reviewed By: sebmarkbage

Differential Revision: D2716823

fb-gh-sync-id: 30adb2ed2231c5635c9336369616cf31c776b930
2015-12-07 23:12:28 -08:00
..
RCTText.xcodeproj Text highlighting on iOS 2015-07-24 08:41:58 -08:00
RCTRawTextManager.h [ReactNative] Expanded license on obj-c files 2015-03-23 13:18:29 -08:00
RCTRawTextManager.m Convert alloc/init to new to please linter 2015-08-17 08:46:00 -07:00
RCTShadowRawText.h [ReactNative] Expanded license on obj-c files 2015-03-23 13:18:29 -08:00
RCTShadowRawText.m Fix Groups text input 2015-11-04 04:09:27 -08:00
RCTShadowText.h Mimic opacity style of nested Text nodes using alpha color component 2015-11-04 08:55:30 -08:00
RCTShadowText.m Replaced RCTSparseArray with NSDictionary 2015-11-14 10:28:28 -08:00
RCTText.h Fixed crash in RCTText due to NSTextContainer/NSLayoutManager being accessed concurrently from main and shadow queues 2015-05-26 18:52:46 -08:00
RCTText.m Added lightweight generic annotations 2015-11-03 14:49:30 -08:00
RCTTextField.h Open sourced the onSelectionChange event 2015-11-14 09:44:30 -08:00
RCTTextField.m Added blurOnSubmit support to multine TextInput (aka RCTTextView) 2015-12-02 08:16:27 -08:00
RCTTextFieldManager.h Migrated RCTText into FBReactKit 2015-07-08 07:13:00 -08:00
RCTTextFieldManager.m Replaced RCTSparseArray with NSDictionary 2015-11-14 10:28:28 -08:00
RCTTextManager.h Add support for multiline TextInput via UITextView 2015-04-29 01:33:58 -08:00
RCTTextManager.m Replaced RCTSparseArray with NSDictionary 2015-11-14 10:28:28 -08:00
RCTTextView.h Added blurOnSubmit support to multine TextInput (aka RCTTextView) 2015-12-02 08:16:27 -08:00
RCTTextView.m This Fixes scroll to top and resigning first responder 2015-12-04 07:56:29 -08:00
RCTTextViewManager.h Add support for multiline TextInput via UITextView 2015-04-29 01:33:58 -08:00
RCTTextViewManager.m Added blurOnSubmit support to multine TextInput (aka RCTTextView) 2015-12-02 08:16:27 -08:00
Text.js Improve Text perf 2015-12-07 23:12:28 -08:00
TextStylePropTypes.js [ReactNative] Text docs 2015-07-27 06:38:27 -08:00
TextUpdateTest.js [ReactNative] Fix Text Updating Crash 2015-05-02 10:07:08 -08:00