react-native/Libraries/Text/TextInput
Johannes Baldursson 610412385b Exposed scrollEnabled on TextInput (#19330)
Summary:
On iOS, it is not possible to select a range of text using a `Text` component (see #13938). Because of how the `Text` component is implemented on iOS, this will not work without a complete re-write. On Android however, this is not an issue.

As the `TextInput` component has evolved, it can more or less be used as a drop-in replacement on iOS by setting `multiline={true}` and `editable={false}`. Except for one detail: the text input field has scrolling activated and it's not possible to turn off. (See #1391 and #15962).

This pull request addresses that issue, simply by exposing the `scrollEnabled` property:

```
<TextInput
    multiline
    editable={false}
    scrollEnabled={false}
  />
```

1. Create a multiline `TextInput` component, with the attributes presented above.
2. Run on iOS
3. The `TextInput` field should not be able to scroll

facebook/react-native-website#367

[IOS] [FEATURE] [TextInput] - Made it possible to turn off scrolling on a multiline TextInput component
Pull Request resolved: https://github.com/facebook/react-native/pull/19330

Differential Revision: D9235061

Pulled By: hramos

fbshipit-source-id: 99d278004fc236b47dde7e61d74c71e8a3b9d170
2018-08-08 18:46:53 -07:00
..
Multiline Remove some methods that have `NS_UNAVAILABLE` set (#19790) 2018-06-19 02:18:01 -07:00
Singleline Remove some methods that have `NS_UNAVAILABLE` set (#19790) 2018-06-19 02:18:01 -07:00
RCTBackedTextInputDelegate.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTBackedTextInputDelegateAdapter.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTBackedTextInputDelegateAdapter.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTBackedTextInputViewProtocol.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTBaseTextInputShadowView.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTBaseTextInputShadowView.m Wrong height when TextInput has an empty string 2018-03-19 02:46:34 -07:00
RCTBaseTextInputView.h - Keyboard layout now updates when changing keyboardType while it has focus (#19027) 2018-06-13 22:47:47 -07:00
RCTBaseTextInputView.m Fix controlled <TextInput> on iOS when inputting in Chinese/Japanese 2018-07-30 08:01:10 -07:00
RCTBaseTextInputViewManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTBaseTextInputViewManager.m Exposed scrollEnabled on TextInput (#19330) 2018-08-08 18:46:53 -07:00
RCTInputAccessoryShadowView.h iOS OSS: fixed RNTester - missing RCTInputAccessoryShadowView.* in .xcodeproj 2018-03-17 22:01:15 -07:00
RCTInputAccessoryShadowView.m iOS OSS: fixed RNTester - missing RCTInputAccessoryShadowView.* in .xcodeproj 2018-03-17 22:01:15 -07:00
RCTInputAccessoryView.h Refactor RCTInputAccessoryView view hierarchy and names 2018-03-13 11:25:12 -07:00
RCTInputAccessoryView.m Refactor RCTInputAccessoryView view hierarchy and names 2018-03-13 11:25:12 -07:00
RCTInputAccessoryViewContent.h Refactor RCTInputAccessoryView view hierarchy and names 2018-03-13 11:25:12 -07:00
RCTInputAccessoryViewContent.m Fix bug with <InputAccessoryView> safe area conformance 2018-04-04 16:47:16 -07:00
RCTInputAccessoryViewManager.h Support Input Accessory View (iOS Only) [1/N] 2018-02-27 11:09:30 -08:00
RCTInputAccessoryViewManager.m Replace js Dimensions with shadow view in InputAccessoryViewExample 2018-03-15 10:14:15 -07:00
RCTTextSelection.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTTextSelection.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00