diff --git a/Libraries/Components/TextInput/TextInput.js b/Libraries/Components/TextInput/TextInput.js index ffc25757a..7bccf38b9 100644 --- a/Libraries/Components/TextInput/TextInput.js +++ b/Libraries/Components/TextInput/TextInput.js @@ -409,7 +409,7 @@ const TextInput = React.createClass({ */ secureTextEntry: PropTypes.bool, /** - * The highlight (and cursor on iOS) color of the text input. + * The highlight and cursor color of the text input. */ selectionColor: ColorPropType, /** diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/BUCK b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/BUCK index b14cc057f..27e87e7fd 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/BUCK @@ -5,6 +5,7 @@ android_library( srcs = glob(['*.java']), deps = [ YOGA_TARGET, + react_native_dep('third-party/android/support/v4:lib-support-v4'), react_native_dep('third-party/java/infer-annotations:infer-annotations'), react_native_dep('third-party/java/jsr-305:jsr-305'), react_native_target('java/com/facebook/react/bridge:bridge'), @@ -22,4 +23,3 @@ android_library( 'PUBLIC', ], ) - diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java index b0ed4cf83..e91f681af 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java @@ -11,11 +11,14 @@ package com.facebook.react.views.textinput; import javax.annotation.Nullable; +import java.lang.reflect.Field; import java.util.LinkedList; import java.util.Map; +import android.graphics.drawable.Drawable; import android.graphics.PorterDuff; import android.graphics.Typeface; +import android.support.v4.content.ContextCompat; import android.text.Editable; import android.text.InputFilter; import android.text.InputType; @@ -310,6 +313,37 @@ public class ReactTextInputManager extends BaseViewManager