mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Enable Kotlin build in OSS (#33160)
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
This commit is contained in:
1 parent
733f228506
commit
b1a779392d
10 files changed
+33
-24
No files matched your search
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* 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);
|
||||
}
|
||||
Reference in new issue
Block a user