From 3d27592924b5ff240cc314e015255c41615ffc2f Mon Sep 17 00:00:00 2001 From: David Vacca <515103+mdvacca@users.noreply.github.com> Date: Mon, 2 Dec 2024 14:21:39 -0800 Subject: [PATCH] Migrate ComponentNameResolver to kotlin (#47919) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/47919 Migrate ComponentNameResolver to kotlin changelog: [Android][Changed] Migrate ComponentNameResolver to kotlin Reviewed By: javache Differential Revision: D66403041 --- ...ComponentNameResolver.java => ComponentNameResolver.kt} | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) rename packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/{ComponentNameResolver.java => ComponentNameResolver.kt} (71%) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ComponentNameResolver.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ComponentNameResolver.kt similarity index 71% rename from packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ComponentNameResolver.java rename to packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ComponentNameResolver.kt index fb9d15de29746a..df8bda2749927b 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ComponentNameResolver.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ComponentNameResolver.kt @@ -5,13 +5,12 @@ * LICENSE file in the root directory of this source tree. */ -package com.facebook.react.uimanager; +package com.facebook.react.uimanager -import com.facebook.proguard.annotations.DoNotStripAny; +import com.facebook.proguard.annotations.DoNotStripAny @DoNotStripAny public interface ComponentNameResolver { - /* returns a list of all the component names that are registered in React Native. */ - String[] getComponentNames(); + public val componentNames: Array? }