mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Format Java code in xplat/js/react-native-github
Summary: This diff formats the Java class files inside xplat/js/react-native-github. Since google-java-format was enabled in D16071401 we want to codemode the existing code so that users don't have to deal with formatter lint noise at diff-time. ```arc f --paths-cmd 'hg files -I "**/*.java"'``` drop-conflicts Reviewed By: cpojer Differential Revision: D16071725 fbshipit-source-id: fc6e3852e45742c109f0c5ac4065d64201c74204
This commit is contained in:
1 parent
61e95e5cbf
commit
6c0f73b322
681 files changed
+14082
-16365
No files matched your search
@@ -1,10 +1,9 @@
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
* <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 com.facebook.react.bridge.NativeModule;
|
||||
@@ -12,21 +11,18 @@ import com.facebook.react.bridge.ReactApplicationContext;
|
||||
import com.facebook.react.uimanager.UIManagerModule;
|
||||
import com.facebook.react.uimanager.ViewManager;
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
/**
|
||||
* Main interface for providing additional capabilities to the catalyst framework by couple of
|
||||
* different means:
|
||||
* 1) Registering new native modules
|
||||
* 2) Registering new JS modules that may be accessed from native modules or from other parts of the
|
||||
* native code (requiring JS modules from the package doesn't mean it will automatically be included
|
||||
* as a part of the JS bundle, so there should be a corresponding piece of code on JS side that will
|
||||
* require implementation of that JS module so that it gets bundled)
|
||||
* 3) Registering custom native views (view managers) and custom event types
|
||||
* 4) Registering natively packaged assets/resources (e.g. images) exposed to JS
|
||||
* different means: 1) Registering new native modules 2) Registering new JS modules that may be
|
||||
* accessed from native modules or from other parts of the native code (requiring JS modules from
|
||||
* the package doesn't mean it will automatically be included as a part of the JS bundle, so there
|
||||
* should be a corresponding piece of code on JS side that will require implementation of that JS
|
||||
* module so that it gets bundled) 3) Registering custom native views (view managers) and custom
|
||||
* event types 4) Registering natively packaged assets/resources (e.g. images) exposed to JS
|
||||
*
|
||||
* TODO(6788500, 6788507): Implement support for adding custom views, events and resources
|
||||
* <p>TODO(6788500, 6788507): Implement support for adding custom views, events and resources
|
||||
*/
|
||||
public interface ReactPackage {
|
||||
|
||||
@@ -37,9 +33,7 @@ public interface ReactPackage {
|
||||
@Nonnull
|
||||
List<NativeModule> createNativeModules(@Nonnull ReactApplicationContext reactContext);
|
||||
|
||||
/**
|
||||
* @return a list of view managers that should be registered with {@link UIManagerModule}
|
||||
*/
|
||||
/** @return a list of view managers that should be registered with {@link UIManagerModule} */
|
||||
@Nonnull
|
||||
List<ViewManager> createViewManagers(@Nonnull ReactApplicationContext reactContext);
|
||||
}
|
||||
Reference in new issue
Block a user