Welcome to the Expo AEPSample App with New Architecture Enabled. This project is an Expo app created using create-expo-app. It demonstrates the integration of Adobe SDKs with a React Native app using Expo, with the new architecture enabled by default.
Before running the example app, ensure your environment meets the following requirements. These prerequisites are specific to the example app:
- Familiarity with React Native development environment setup is recommended.
- Cocoapods: Version 1.11.3 or higher.
- Android Studio: Requires version 2024.2.1 Patch 1 (Ladybug) or higher.
- Xcode: Requires version 16.1 (16B40) or higher.
- Node.js: Version 18 or higher.
- React Native: Tested with version 0.75.x.
- Expo: Tested with version 51.
- Note: The new architecture is enabled by default in this build.
To install AEPSampleAppNewArchEnabled App, follow these steps:
Note: Commands are assuming you're in the root directory of the repository.
yarn install
yarn run build
yarn sampleappnewarchenabled:expo:prebuild
In apps/AEPSampleAppNewArchEnabled/app/_layout.tsx, locate the call to MobileCore.initializeWithAppId(appId:"YOUR_APP_ID") and replace "YOUR_APP_ID" with your property App Id.
Note: The App ID should be configured in a mobile property in the Data Collection UI, in Tags. Refer to Adobe documentation for more information.
-
Run Using Yarn
Ensure you are in the root directory of the project and execute the following command:yarn sampleappnewarchenabled:ios:run
-
Run the iOS App from Xcode
Alternatively, follow these steps to run the app using Xcode:- Start the Expo server by running the following command in the terminal:
cd apps/AEPSampleAppNewArchEnabled npx expo start - Navigate to the iOS directory:
cd ios - Open the Xcode workspace:
open AEPSampleAppNewArchEnabled.xcworkspace
- Once Xcode opens, build and run the app on your desired simulator or device.
- Start the Expo server by running the following command in the terminal:
-
Run Using Yarn
Ensure an Android emulator is running or a physical device is connected. For guidance, refer to the Android Emulator Command Line Documentation. Then, execute the following command from the root directory:yarn sampleappnewarchenabled:android:run
-
Run the Android App from Android Studio
Alternatively, follow these steps to run the app using Android Studio:- Start the Expo server by running the following command in the terminal:
cd apps/AEPSampleAppNewArchEnabled npx expo start - Navigate to the
androiddirectory:cd android - Open the project in Android Studio by launching
build.gradlelocated in theapps/AEPSampleAppNewArchEnabled/androiddirectory. - Once Android Studio opens, build and run the app on your connected device or emulator.
- Start the Expo server by running the following command in the terminal:
Assurance is integrated into the sample app for event and flow validation.
- Create an Assurance Session.
- Copy the session link from the
Copy Linkbutton in the Assurance Session Details window. - Paste the link into the AEPSampleAppNewArchEnabled -> AssuranceView and start the session.
Thank you for using Expo AEPSample App with New Architecture Enabled! Feel free to star this repository and provide feedback!