react-native/Libraries
James Ide 08d1bc8c9f [TextInput] Fix multiline TextInput so text and cursor stay in bounds
Summary:
With a multiline TextInput, the text is initially rendered correctly but once you try to edit it, the cursor slides off the top of the view and out of its bounds. Also if the TextInput is scrollable, you can scroll the text out of the bounds of the view, which looks buggy unless you clip the overflow. This occurs because the top content inset is applied to the RCTTextView instead of the UITextView's text container.

This diff fixes both bugs by applying the vertical insets to the UITextView's textContainerInset instead of the RCTTextView's frame (which is a wrapper around a real UITextView).

The left inset is still applied to the frame because there is a bug with the text rendering when the left textContainerInset is negative: the initial text doesn't show up until you focus the text view. The bug doesn't occur when setting the right textContainerInset, so I apply this workaround to only the left inset.

Closes https://github.com/facebook/react-native/pull/2297
Github Author: James Ide <ide@jameside.com>
2015-08-12 14:50:42 -08:00
..
ART Refactor RCTUIManager 2015-08-06 15:49:35 -08:00
ActionSheetIOS Use +[RCTConvert NSURL:] everywhere instead of +[NSURL URLWithString:] 2015-08-04 16:26:16 -08:00
AdSupport Text highlighting on iOS 2015-07-24 08:41:58 -08:00
Animation [Animated] Remove rebound dependency 2015-08-03 15:24:40 -08:00
AppRegistry [React Native] Provide a way to get a list of registered apps in AppRegistry 2015-08-07 11:05:25 -08:00
AppStateIOS [RN|madman] init AppStateIOS.currentState with 'active' 2015-06-11 13:22:16 -08:00
BatchedBridge [madman] version mobile configs disk caching 2015-07-28 18:11:34 -08:00
CameraRoll [ReactNative] CameraRoll docs 2015-07-27 09:46:35 -08:00
Components [ReactNative] Open source ProgressBarAndroid, remove example from the RN launcher 2015-08-12 12:02:17 -08:00
CustomComponents [Navigation]: Add a method to map the stack routes to an array. 2015-08-06 02:01:59 -08:00
DebugComponentHierarchy [ReactNative] Send debug component ownership info in createView 2015-06-25 05:47:24 -08:00
Device flowify some Libraries 2015-03-25 11:09:54 -08:00
Devtools [react-native] enable react devtools from JavascriptCore 2015-07-23 17:14:09 -08:00
Fetch [ReactNative] clean lint in all of Libraries/ 2015-05-19 13:47:04 -08:00
Geolocation Text highlighting on iOS 2015-07-24 08:41:58 -08:00
Image [CameraRoll] Image orientation fix for #1845 2015-08-11 08:44:57 -08:00
Inspector [react-native] enable react devtools from JavascriptCore 2015-07-23 17:14:09 -08:00
Interaction InteractionManager: remove dev timeout warnings 2015-07-01 04:51:28 -08:00
JavaScriptAppEngine Fix crash when using alert() polyfill due to null callback 2015-08-11 07:31:19 -08:00
LinkingIOS Text highlighting on iOS 2015-07-24 08:41:58 -08:00
Modal Add <Modal /> component 2015-07-28 07:21:50 -08:00
NativeApp [ReactNative] Add "RCTNativeAppEventEmitter" 2015-05-15 16:57:18 -08:00
Network Fix RKHTTPRequestHandler crash 2015-08-10 13:46:47 -08:00
Picker Removed deprecated RCT_EXPORT + code paths 2015-06-05 09:58:25 -08:00
Portal [reactnative] move .android.js files to oss 2015-07-22 08:44:07 -08:00
PushNotificationIOS Text highlighting on iOS 2015-07-24 08:41:58 -08:00
RCTTest Text highlighting on iOS 2015-07-24 08:41:58 -08:00
RKBackendNode [ReactNative] clean lint in all of Libraries/ 2015-05-19 13:47:04 -08:00
ReactIOS [ReactNative] cleanup native components 2015-07-24 18:54:35 -08:00
ReactNative [RFC][Rendering] Add shouldRasterizeIOS to View components 2015-08-04 15:37:38 -08:00
Settings Text highlighting on iOS 2015-07-24 08:41:58 -08:00
Storage [Docs] Clarify in the AsyncStorage docs that it is global to the app, not OS 2015-06-15 14:18:09 -08:00
StyleSheet [ReactNative] Add overflow to the whitelisted Image props 2015-07-27 11:06:27 -08:00
Text [TextInput] Fix multiline TextInput so text and cursor stay in bounds 2015-08-12 14:50:42 -08:00
Utilities Fixed fuzzer app and ensured that React does not crash when fuzzed 2015-08-12 06:14:36 -08:00
Vibration Text highlighting on iOS 2015-07-24 08:41:58 -08:00
WebSocket Use +[RCTConvert NSURL:] everywhere instead of +[NSURL URLWithString:] 2015-08-04 16:26:16 -08:00
react-native Add <Modal /> component 2015-07-28 07:21:50 -08:00
vendor [ReactNative] Fix ResponderEventPlugin after React upgrade 2015-07-29 02:47:55 -08:00
Promise.js Replace ES6Promise with Promise 2015-04-15 06:06:29 -08:00