mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/33160 Enables Kotlin build in RNAndroid, while adjusting the package structure to help with path/package inconsistency. Moves `react/uimanager/interfaces` files into `react/uimanager` to make sure package name matches with file location and updates Buck configuration to still include it as a separate target. Changelog: [Android][Changed] - Moved `com/react/facebook/uimanager/interfaces` files into `com/react/facebook/uimanager` to enable Kotlin build Reviewed By: cortinico Differential Revision: D34381179 fbshipit-source-id: 252588d9c7f62b8019bdfcce66197628d63e63a1
75 lines
2.2 KiB
Java
75 lines
2.2 KiB
Java
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
package com.facebook.react.uimanager;
|
|
|
|
import android.view.View;
|
|
import androidx.annotation.Nullable;
|
|
import com.facebook.react.bridge.Dynamic;
|
|
import com.facebook.react.bridge.ReadableArray;
|
|
import com.facebook.react.bridge.ReadableMap;
|
|
|
|
/**
|
|
* This is an interface that should be implemented by view managers supporting the base view
|
|
* properties such as backgroundColor, opacity, etc.
|
|
*/
|
|
public interface BaseViewManagerInterface<T extends View> {
|
|
void setAccessibilityActions(T view, @Nullable ReadableArray accessibilityActions);
|
|
|
|
void setAccessibilityHint(T view, @Nullable String accessibilityHint);
|
|
|
|
void setAccessibilityLabel(T view, @Nullable String accessibilityLabel);
|
|
|
|
void setAccessibilityLiveRegion(T view, @Nullable String liveRegion);
|
|
|
|
void setAccessibilityRole(T view, @Nullable String accessibilityRole);
|
|
|
|
void setViewState(T view, @Nullable ReadableMap accessibilityState);
|
|
|
|
void setBackgroundColor(T view, int backgroundColor);
|
|
|
|
void setBorderRadius(T view, float borderRadius);
|
|
|
|
void setBorderBottomLeftRadius(T view, float borderRadius);
|
|
|
|
void setBorderBottomRightRadius(T view, float borderRadius);
|
|
|
|
void setBorderTopLeftRadius(T view, float borderRadius);
|
|
|
|
void setBorderTopRightRadius(T view, float borderRadius);
|
|
|
|
void setElevation(T view, float elevation);
|
|
|
|
void setShadowColor(T view, int shadowColor);
|
|
|
|
void setImportantForAccessibility(T view, @Nullable String importantForAccessibility);
|
|
|
|
void setNativeId(T view, @Nullable String nativeId);
|
|
|
|
void setAccessibilityLabelledBy(T view, @Nullable Dynamic nativeId);
|
|
|
|
void setOpacity(T view, float opacity);
|
|
|
|
void setRenderToHardwareTexture(T view, boolean useHWTexture);
|
|
|
|
void setRotation(T view, float rotation);
|
|
|
|
void setScaleX(T view, float scaleX);
|
|
|
|
void setScaleY(T view, float scaleY);
|
|
|
|
void setTestId(T view, String testId);
|
|
|
|
void setTransform(T view, @Nullable ReadableArray matrix);
|
|
|
|
void setTranslateX(T view, float translateX);
|
|
|
|
void setTranslateY(T view, float translateY);
|
|
|
|
void setZIndex(T view, float zIndex);
|
|
}
|