mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-03 22:48:25 +08:00
Summary: @public Relax the constraint on ReactTextInputManager. The TextInput Advanced screen looked different with and without nodes, namely child Text items were not being rendered on the Nodes version. This patch fixes that. Differential Revision: D2930800
26 lines
683 B
Java
26 lines
683 B
Java
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
|
|
package com.facebook.react.flat;
|
|
|
|
import com.facebook.react.views.textinput.ReactTextInputManager;
|
|
|
|
/* package */ class RCTTextInputManager extends ReactTextInputManager {
|
|
|
|
@Override
|
|
public RCTTextInput createShadowNodeInstance() {
|
|
return new RCTTextInput();
|
|
}
|
|
|
|
@Override
|
|
public Class<RCTTextInput> getShadowNodeClass() {
|
|
return RCTTextInput.class;
|
|
}
|
|
}
|