mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-02 14:54:58 +08:00
annotate FB4A's view managers with @ReactModule
Reviewed By: achen1 Differential Revision: D4044730 fbshipit-source-id: c80c23c524b2d9366c51c52cbcdee8a2a4f26f75
This commit is contained in:
committed by
Facebook Github Bot
parent
e16251b46d
commit
ffe06d3cfa
@@ -9,9 +9,10 @@ android_library(
|
||||
react_native_dep('third-party/java/jsr-305:jsr-305'),
|
||||
react_native_target('java/com/facebook/react/bridge:bridge'),
|
||||
react_native_target('java/com/facebook/react/common:common'),
|
||||
react_native_target('java/com/facebook/react/module/annotations:annotations'),
|
||||
react_native_target('java/com/facebook/react/modules/core:core'),
|
||||
react_native_target('java/com/facebook/react/uimanager/annotations:annotations'),
|
||||
react_native_target('java/com/facebook/react/uimanager:uimanager'),
|
||||
react_native_target('java/com/facebook/react/uimanager/annotations:annotations'),
|
||||
react_native_target('java/com/facebook/react/views/imagehelper:imagehelper'),
|
||||
react_native_target('java/com/facebook/react/views/text:text'),
|
||||
react_native_target('java/com/facebook/react/views/view:view'),
|
||||
|
||||
@@ -36,6 +36,7 @@ import com.facebook.react.bridge.ReactContext;
|
||||
import com.facebook.react.bridge.ReadableArray;
|
||||
import com.facebook.react.bridge.ReadableMap;
|
||||
import com.facebook.react.common.MapBuilder;
|
||||
import com.facebook.react.module.annotations.ReactModule;
|
||||
import com.facebook.react.uimanager.BaseViewManager;
|
||||
import com.facebook.react.uimanager.LayoutShadowNode;
|
||||
import com.facebook.react.uimanager.PixelUtil;
|
||||
@@ -55,9 +56,10 @@ import com.facebook.react.views.text.TextInlineImageSpan;
|
||||
/**
|
||||
* Manages instances of TextInput.
|
||||
*/
|
||||
@ReactModule(name = ReactTextInputManager.REACT_CLASS)
|
||||
public class ReactTextInputManager extends BaseViewManager<ReactEditText, LayoutShadowNode> {
|
||||
|
||||
/* package */ static final String REACT_CLASS = "AndroidTextInput";
|
||||
protected static final String REACT_CLASS = "AndroidTextInput";
|
||||
|
||||
private static final int[] SPACING_TYPES = {
|
||||
Spacing.ALL, Spacing.LEFT, Spacing.RIGHT, Spacing.TOP, Spacing.BOTTOM,
|
||||
@@ -778,8 +780,7 @@ public class ReactTextInputManager extends BaseViewManager<ReactEditText, Layout
|
||||
mReactEditText.getId(),
|
||||
start,
|
||||
end
|
||||
)
|
||||
);
|
||||
));
|
||||
|
||||
mPreviousSelectionStart = start;
|
||||
mPreviousSelectionEnd = end;
|
||||
|
||||
Reference in New Issue
Block a user