From 500ecf72062df6ba9ef6eb96eb5c7d0cb0bdc9a3 Mon Sep 17 00:00:00 2001 From: Hur Ali Date: Mon, 23 Feb 2026 17:22:14 +0500 Subject: [PATCH 1/3] docs: mention AppCompatActivity constraint with Expo --- docs/docs/docs/getting-started/expo.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/docs/docs/getting-started/expo.mdx b/docs/docs/docs/getting-started/expo.mdx index 8666e27a..64a7d1b5 100644 --- a/docs/docs/docs/getting-started/expo.mdx +++ b/docs/docs/docs/getting-started/expo.mdx @@ -88,6 +88,8 @@ override fun onConfigurationChanged(newConfig: Configuration) { > You can see the demo integration in [Android App](https://github.com/callstack/react-native-brownfield/blob/main/apps/AndroidApp/app/src/main/java/com/callstack/brownfield/android/example/MainActivity.kt) as well +> Using the ComponentActivity does not work with Expo Apps as Expo needs an instance of AppCompatActivity. There is a hard type assertion [here](https://github.com/expo/expo/blob/a2a3c04e5d946182b5aa9e312ef767879119c4bb/packages/expo-modules-core/android/src/main/java/expo/modules/kotlin/AppContext.kt#L292) + 4. Build and install the android application 🚀
From f8ecf646a7f22a37e1f3c65b02c2d2a243f6b868 Mon Sep 17 00:00:00 2001 From: Hur Ali Date: Mon, 23 Feb 2026 17:29:18 +0500 Subject: [PATCH 2/3] Update docs/docs/docs/getting-started/expo.mdx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- docs/docs/docs/getting-started/expo.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/docs/getting-started/expo.mdx b/docs/docs/docs/getting-started/expo.mdx index 64a7d1b5..9f78900e 100644 --- a/docs/docs/docs/getting-started/expo.mdx +++ b/docs/docs/docs/getting-started/expo.mdx @@ -88,7 +88,7 @@ override fun onConfigurationChanged(newConfig: Configuration) { > You can see the demo integration in [Android App](https://github.com/callstack/react-native-brownfield/blob/main/apps/AndroidApp/app/src/main/java/com/callstack/brownfield/android/example/MainActivity.kt) as well -> Using the ComponentActivity does not work with Expo Apps as Expo needs an instance of AppCompatActivity. There is a hard type assertion [here](https://github.com/expo/expo/blob/a2a3c04e5d946182b5aa9e312ef767879119c4bb/packages/expo-modules-core/android/src/main/java/expo/modules/kotlin/AppContext.kt#L292) +> Using the ComponentActivity does not work with Expo apps as Expo needs an instance of AppCompatActivity. There is a hard type assertion [here](https://github.com/expo/expo/blob/a2a3c04e5d946182b5aa9e312ef767879119c4bb/packages/expo-modules-core/android/src/main/java/expo/modules/kotlin/AppContext.kt#L292) 4. Build and install the android application 🚀 From 3d80e807d3cfc288e5a46df68dee9f678991d97b Mon Sep 17 00:00:00 2001 From: Hur Ali Date: Tue, 24 Feb 2026 10:42:13 +0500 Subject: [PATCH 3/3] docs: use warning --- docs/docs/docs/getting-started/expo.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/docs/docs/getting-started/expo.mdx b/docs/docs/docs/getting-started/expo.mdx index 9f78900e..a033e14b 100644 --- a/docs/docs/docs/getting-started/expo.mdx +++ b/docs/docs/docs/getting-started/expo.mdx @@ -88,7 +88,9 @@ override fun onConfigurationChanged(newConfig: Configuration) { > You can see the demo integration in [Android App](https://github.com/callstack/react-native-brownfield/blob/main/apps/AndroidApp/app/src/main/java/com/callstack/brownfield/android/example/MainActivity.kt) as well -> Using the ComponentActivity does not work with Expo apps as Expo needs an instance of AppCompatActivity. There is a hard type assertion [here](https://github.com/expo/expo/blob/a2a3c04e5d946182b5aa9e312ef767879119c4bb/packages/expo-modules-core/android/src/main/java/expo/modules/kotlin/AppContext.kt#L292) +:::warning +Using the ComponentActivity does not work with Expo Apps as Expo needs an instance of AppCompatActivity. There is a hard type assertion [here](https://github.com/expo/expo/blob/a2a3c04e5d946182b5aa9e312ef767879119c4bb/packages/expo-modules-core/android/src/main/java/expo/modules/kotlin/AppContext.kt#L292) +::: 4. Build and install the android application 🚀