From 70c761653564653bdfcb77a8c5ef3608dafcf5d7 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Thu, 24 Oct 2024 13:04:23 -0700 Subject: [PATCH] Make ReactHost.createSurface() method non nullable (#47189) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/47189 ReactHost.createSurface() should not return a nullable surface, I'm changing that here. changelog: [Android][Breaking] Make ReactHost.createSurface() method non nullable Reviewed By: tdn120 Differential Revision: D64910107 fbshipit-source-id: ce8c5efd2c1e36eba0a85ae89cd1cd2a6305e885 --- .../ReactAndroid/src/main/java/com/facebook/react/ReactHost.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactHost.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactHost.kt index add1f767f917df..b5a88b70574272 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactHost.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactHost.kt @@ -84,7 +84,7 @@ public interface ReactHost { context: Context, moduleName: String, initialProps: Bundle? - ): ReactSurface? + ): ReactSurface /** * This function can be used to initialize the ReactInstance in a background thread before a