Skip to content

Comments

docs: mention AppCompatActivity constraint with Expo#245

Merged
hurali97 merged 3 commits intomainfrom
docs/add-expo-activity-constraint
Feb 24, 2026
Merged

docs: mention AppCompatActivity constraint with Expo#245
hurali97 merged 3 commits intomainfrom
docs/add-expo-activity-constraint

Conversation

@hurali97
Copy link
Member

Summary

This adds a note to the expo docs, stating the constraint to use the AppCompatActivity. For example, a new bootstrapped project from Android Studio for JetPack compose will contain the ComponentActivity and using the generated Expo Brownfield AAR is not possible because Expo needs AppCompatActivity instead.

This only affects the native or host Android Apps, which consumes the AAR.

Test plan

N/A

Copilot AI review requested due to automatic review settings February 23, 2026 12:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds important documentation about a constraint when using Expo brownfield integration with Android. The note clarifies that ComponentActivity cannot be used with Expo apps because Expo requires AppCompatActivity specifically, with a reference to the Expo source code that enforces this requirement.

Changes:

  • Adds a documentation note in the Expo integration guide warning developers that ComponentActivity is incompatible with Expo apps
  • Provides a direct link to the Expo source code showing the hard type assertion that requires AppCompatActivity

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

hurali97 and others added 2 commits February 23, 2026 17:29
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Collaborator

@artus9033 artus9033 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@hurali97 hurali97 merged commit 8a3460f into main Feb 24, 2026
8 of 9 checks passed
@hurali97 hurali97 deleted the docs/add-expo-activity-constraint branch February 24, 2026 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants