Skip to content

Commit 500ecf7

Browse files
committed
docs: mention AppCompatActivity constraint with Expo
1 parent 891c995 commit 500ecf7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/docs/docs/getting-started/expo.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ override fun onConfigurationChanged(newConfig: Configuration) {
8888

8989
> 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
9090
91+
> 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)
92+
9193
4. Build and install the android application 🚀
9294

9395
<hr/>

0 commit comments

Comments
 (0)