mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
reduce visibility of getNativeModuleIterator (#39164)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/39164 getNativeModuleIterator is not required to be public, reducing visibillity to package only changelog: [internal] intenral Reviewed By: arushikesarwani94 Differential Revision: D48691698 fbshipit-source-id: d319e7038b0307f1a474bdd449f3c50fd4f07f71
This commit is contained in:
committed by
Facebook GitHub Bot
parent
ff4e7fac6c
commit
a60e880882
+3
-2
@@ -37,6 +37,7 @@ public abstract class LazyReactPackage implements ReactPackage {
|
||||
LazyReactPackage lazyReactPackage) {
|
||||
return Collections::emptyMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* We return an iterable
|
||||
*
|
||||
@@ -44,8 +45,8 @@ public abstract class LazyReactPackage implements ReactPackage {
|
||||
* @return {@link Iterable<ModuleHolder>} that contains all native modules registered for the
|
||||
* context
|
||||
*/
|
||||
public Iterable<ModuleHolder> getNativeModuleIterator(
|
||||
final ReactApplicationContext reactContext) {
|
||||
/** package */
|
||||
Iterable<ModuleHolder> getNativeModuleIterator(final ReactApplicationContext reactContext) {
|
||||
final Map<String, ReactModuleInfo> reactModuleInfoMap =
|
||||
getReactModuleInfoProvider().getReactModuleInfos();
|
||||
final List<ModuleSpec> nativeModules = getNativeModules(reactContext);
|
||||
|
||||
+2
-1
@@ -25,7 +25,8 @@ public class ReactPackageHelper {
|
||||
* @param reactInstanceManager
|
||||
* @return
|
||||
*/
|
||||
public static Iterable<ModuleHolder> getNativeModuleIterator(
|
||||
/** package */
|
||||
static Iterable<ModuleHolder> getNativeModuleIterator(
|
||||
ReactPackage reactPackage,
|
||||
ReactApplicationContext reactApplicationContext,
|
||||
ReactInstanceManager reactInstanceManager) {
|
||||
|
||||
+2
-2
@@ -55,8 +55,8 @@ public abstract class TurboReactPackage implements ReactPackage {
|
||||
* @param reactContext
|
||||
* @return
|
||||
*/
|
||||
public Iterable<ModuleHolder> getNativeModuleIterator(
|
||||
final ReactApplicationContext reactContext) {
|
||||
/** package */
|
||||
Iterable<ModuleHolder> getNativeModuleIterator(final ReactApplicationContext reactContext) {
|
||||
final Set<Map.Entry<String, ReactModuleInfo>> entrySet =
|
||||
getReactModuleInfoProvider().getReactModuleInfos().entrySet();
|
||||
final Iterator<Map.Entry<String, ReactModuleInfo>> entrySetIterator = entrySet.iterator();
|
||||
|
||||
Reference in New Issue
Block a user