mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
827b1fe7a4
Summary: Both RCTUITextField and RCTUITextView must maintain the same public interface that describes all possible features that TextInput needs. That features are declared via `RCTBackedTextInputViewProtocol`. `scrollEnabled` is a part of this protocol. The idea behind this prop was borrowed from `UIScrollView` class (which `UITextView` extends) and implemented for `RCTUITextField` (yeah, implemented as no-op). In this diff we change the implementation of this prop to be more consistent with original implementation in UIScrollView: * Now the name of the getter is now `isScrollEnabled`; * The object now retains the actual value of the prop (even if it ignores that). We need all those features for Fabric-compatible implementation. Changelog: [Internal] Fabric-specific internal change. Reviewed By: sammy-SC Differential Revision: D18950426 fbshipit-source-id: 50c399d0fbba1be31750dbe4f235a075f86e8c01