Skip to content

Commit 8a3460f

Browse files
hurali97Copilot
andauthored
docs: mention AppCompatActivity constraint with Expo (#245)
* docs: mention AppCompatActivity constraint with Expo * Update docs/docs/docs/getting-started/expo.mdx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * docs: use warning --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 665d564 commit 8a3460f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ 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+
:::warning
92+
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)
93+
:::
94+
9195
4. Build and install the android application 🚀
9296

9397
<hr />

0 commit comments

Comments
 (0)