Skip to content

Commit

Permalink
[android] Add application to Home activity modules (#26990)
Browse files Browse the repository at this point in the history
# Why

Expo Go is intacrasing with the following error 

> Caused by: com.facebook.react.common.JavascriptException: Error:
Cannot find native module 'ExpoApplication'

# How

Add Application module to Home activity modules list

# Test Plan

Run Expo Go locally on android, ensure that home works as expected and
that it can load apps

# Checklist

<!--
Please check the appropriate items below if they apply to your diff.
This is required for changes to Expo modules.
-->

- [ ] Documentation is up to date to reflect these changes (eg:
https://docs.expo.dev and README.md).
- [ ] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
- [ ] This diff will work correctly for `npx expo prebuild` & EAS Build
(eg: updated a module plugin).
  • Loading branch information
gabrieldonadel committed Feb 8, 2024
1 parent 4db737c commit fa97289
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import com.facebook.react.ReactRootView
import com.facebook.soloader.SoLoader
import com.squareup.leakcanary.LeakCanary
import de.greenrobot.event.EventBus
import expo.modules.application.ApplicationModule
import expo.modules.barcodescanner.BarCodeScannerModule
import expo.modules.barcodescanner.BarCodeScannerPackage
import expo.modules.blur.BlurModule
Expand Down Expand Up @@ -176,7 +177,8 @@ open class HomeActivity : BaseExperienceActivity() {
SplashScreenModule::class.java,
TrackingTransparencyModule::class.java,
StoreReviewModule::class.java,
WebBrowserModule::class.java
WebBrowserModule::class.java,
ApplicationModule::class.java
)
}
}
Expand Down

0 comments on commit fa97289

Please sign in to comment.