Remove class-loading experiment for View Managers.

Reviewed By: fkgozali

Differential Revision: D7418876

fbshipit-source-id: 52f8dce29a509233b9545a564c4f0d390fa81f13
This commit is contained in:
Dmitry Zakharov
2018-03-28 12:52:20 -07:00
committed by Facebook Github Bot
parent 88ba7ebcc7
commit 7cbb222cd5
4 changed files with 8 additions and 26 deletions
@@ -16,17 +16,12 @@ public interface ViewManagerOnDemandReactPackage {
/**
* Provides a list of names of ViewManagers with which these modules can be accessed from JS.
* Typically, this is ViewManager.getName().
*
* @param loadClasses defines if View Managers classes should be loaded or be avoided.
*/
@Nullable List<String> getViewManagerNames(ReactApplicationContext reactContext, boolean loadClasses);
@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.
*
* @param loadClasses defines if View Managers classes should be loaded or be avoided.
*/
@Nullable
ViewManager createViewManager(
ReactApplicationContext reactContext, String viewManagerName, boolean loadClasses);
ViewManager createViewManager(ReactApplicationContext reactContext, String viewManagerName);
}