Update OSS generated Android component delegates

Summary:
$title

Now that the codegen handles the new PlatformColors, regenerating the checked in native component files.

Changelog:
[Internal]

(Note: this ignores all push blocking failures!)

Reviewed By: mdvacca

Differential Revision: D20175914

fbshipit-source-id: fa7b8e5139dcfe06f49582d7810fae12e1e1fb4b
This commit is contained in:
Eli White
2020-03-02 15:07:50 -08:00
committed by Facebook Github Bot
parent 03ac8e872e
commit 8643b5560e
9 changed files with 28 additions and 19 deletions
@@ -11,6 +11,7 @@ package com.facebook.react.viewmanagers;
import android.view.View;
import androidx.annotation.Nullable;
import com.facebook.react.bridge.ColorPropConverter;
import com.facebook.react.bridge.ReadableArray;
import com.facebook.react.uimanager.BaseViewManagerDelegate;
import com.facebook.react.uimanager.BaseViewManagerInterface;
@@ -33,13 +34,13 @@ public class SegmentedControlManagerDelegate<T extends View, U extends BaseViewM
mViewManager.setEnabled(view, value == null ? true : (boolean) value);
break;
case "tintColor":
mViewManager.setTintColor(view, value == null ? null : ((Double) value).intValue());
mViewManager.setTintColor(view, ColorPropConverter.getColor(value, view.getContext()));
break;
case "textColor":
mViewManager.setTextColor(view, value == null ? null : ((Double) value).intValue());
mViewManager.setTextColor(view, ColorPropConverter.getColor(value, view.getContext()));
break;
case "backgroundColor":
mViewManager.setBackgroundColor(view, value == null ? null : ((Double) value).intValue());
mViewManager.setBackgroundColor(view, ColorPropConverter.getColor(value, view.getContext()));
break;
case "momentary":
mViewManager.setMomentary(view, value == null ? false : (boolean) value);