mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
aa5edca0e2
Summary: This diff migrates the usages Nullable and NonNull annotations to AndroidX instead of javax. The purpose of this change is to bring consistency in the annotations used by the core of RN Reviewed By: makovkastar Differential Revision: D16054504 fbshipit-source-id: 21d888854da088d2a14615a90d4dc058e5286b91
28 lines
955 B
Java
28 lines
955 B
Java
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* <p>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;
|
|
|
|
import androidx.annotation.Nullable;
|
|
import com.facebook.react.bridge.ReactApplicationContext;
|
|
import com.facebook.react.uimanager.ViewManager;
|
|
import java.util.List;
|
|
|
|
public interface ViewManagerOnDemandReactPackage {
|
|
/**
|
|
* Provides a list of names of ViewManagers with which these modules can be accessed from JS.
|
|
* Typically, this is ViewManager.getName().
|
|
*/
|
|
@Nullable
|
|
List<String> getViewManagerNames(ReactApplicationContext reactContext);
|
|
/**
|
|
* Creates and returns a ViewManager with a specific name {@param viewManagerName}. It's up to an
|
|
* implementing package how to interpret the name.
|
|
*/
|
|
@Nullable
|
|
ViewManager createViewManager(ReactApplicationContext reactContext, String viewManagerName);
|
|
}
|