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
26 lines
813 B
Java
26 lines
813 B
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.ReadableArray;
|
|
|
|
/**
|
|
* This is an interface that must be implemented by classes that wish to take over the
|
|
* responsibility of setting properties of all views managed by the view manager and executing view
|
|
* commands.
|
|
*
|
|
* @param <T> the type of the view supported by this delegate
|
|
*/
|
|
public interface ViewManagerDelegate<T extends View> {
|
|
void setProperty(T view, String propName, @Nullable Object value);
|
|
|
|
void receiveCommand(T view, String commandName, ReadableArray args);
|
|
}
|