Files
Folo/apps/mobile/plugins/with-android-manifest-plugin.js
Whitewater 547a4fdc96 feat(mobile): lightbox (#3882)
* feat(mobile): lightbox

* chore: auto-fix linting and formatting issues

* feat: enhance back handler to close lightbox when active

* feat: integrate Lightbox component and move SafeAreaProvider to RootProviders

* refactor: update renderItem function to use destructured props

* feat: add Android manifest plugin to enable large heap size

* fix: add rounded corners to AspectRatioImage

* feat: set priority to high for image loading in ImageItem component

* chore: remove unused zIndex from ImageViewing

* feat: update ImageDefaultHeader and LightboxFooter for improved layout

* chore: simplify renderItem function signature in PagerList and Subscriptions components

* refactor: update galeria

* chore: tweak component

* feat: integrate lightbox functionality for media previews
2025-06-12 13:52:07 +08:00

14 lines
560 B
JavaScript

const { withAndroidManifest } = require("expo/config-plugins")
// Ported from https://github.com/bluesky-social/social-app/blob/a5e25a7a16cdcde64628e942c073a119bc1d7a1e/plugins/withAndroidManifestPlugin.js
module.exports = function withAndroidManifestPlugin(appConfig) {
return withAndroidManifest(appConfig, (decoratedAppConfig) => {
try {
decoratedAppConfig.modResults.manifest.application[0].$["android:largeHeap"] = "true"
} catch (e) {
console.error(`withAndroidManifestPlugin failed`, e)
}
return decoratedAppConfig
})
}