Java Code Examples for com.facebook.react.uimanager.ViewProps#COLOR

The following examples show how to use com.facebook.react.uimanager.ViewProps#COLOR . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ReactTextInputManager.java    From react-native-GPay with MIT License 5 votes vote down vote up
@ReactProp(name = ViewProps.COLOR, customType = "Color")
public void setColor(ReactEditText view, @Nullable Integer color) {
  if (color == null) {
    view.setTextColor(DefaultStyleValuesUtil.getDefaultTextColor(view.getContext()));
  } else {
    view.setTextColor(color);
  }
}
 
Example 2
Source File: ReactPickerManager.java    From react-native-GPay with MIT License 5 votes vote down vote up
@ReactProp(name = ViewProps.COLOR, customType = "Color")
public void setColor(ReactPicker view, @Nullable Integer color) {
  view.setPrimaryColor(color);
  ReactPickerAdapter adapter = (ReactPickerAdapter) view.getAdapter();
  if (adapter != null) {
    adapter.setPrimaryTextColor(color);
  }
}
 
Example 3
Source File: ReactBaseTextShadowNode.java    From react-native-GPay with MIT License 5 votes vote down vote up
@ReactProp(name = ViewProps.COLOR)
public void setColor(@Nullable Integer color) {
  mIsColorSet = (color != null);
  if (mIsColorSet) {
    mColor = color;
  }
  markUpdated();
}
 
Example 4
Source File: ReactProgressBarViewManager.java    From progress-bar-android with MIT License 4 votes vote down vote up
@ReactProp(name = ViewProps.COLOR, customType = "Color")
public void setColor(ProgressBarContainerView view, @Nullable Integer color) {
  view.setColor(color);
}
 
Example 5
Source File: ReactProgressBarViewManager.java    From react-native-GPay with MIT License 4 votes vote down vote up
@ReactProp(name = ViewProps.COLOR, customType = "Color")
public void setColor(ProgressBarContainerView view, @Nullable Integer color) {
  view.setColor(color);
}