mirror of
https://github.com/RSSNext/Folo.git
synced 2026-10-22 08:26:43 +08:00
547a4fdc96
* 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
14 lines
560 B
JavaScript
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
|
|
})
|
|
}
|