Example usage for com.facebook.react.views.text DefaultStyleValuesUtil getDefaultTextColorHint

List of usage examples for com.facebook.react.views.text DefaultStyleValuesUtil getDefaultTextColorHint

Introduction

In this page you can find the example usage for com.facebook.react.views.text DefaultStyleValuesUtil getDefaultTextColorHint.

Prototype

public static ColorStateList getDefaultTextColorHint(Context context) 

Source Link

Document

Utility method that returns the default text hint color as define by the theme

Usage

From source file:fr.bamlab.textinput.ReactTextInputManager.java

License:Open Source License

@ReactProp(name = "placeholderTextColor", customType = "Color")
public void setPlaceholderTextColor(ReactEditText view, @Nullable Integer color) {
    if (color == null) {
        view.setHintTextColor(DefaultStyleValuesUtil.getDefaultTextColorHint(view.getContext()));
    } else {// w  ww. ja v  a 2s  . c om
        view.setHintTextColor(color);
    }
}