Merge pull request 'fix(renderers): hide alternative name card on extra ordinary vessels detail' (#80) from fix/remove-eov-alt-name into main

Reviewed-on: https://10.10.0.4/AcuPedia/acupedia-mobile-ui/pulls/80
Reviewed-by: Amit Salunke <amit@noreply.localhost>
This commit is contained in:
Amit Salunke 2026-10-26 08:28:00 +00:00
commit 130f635017
3 changed files with 25 additions and 11 deletions

View File

@ -123,9 +123,7 @@ android {
signingConfig signingConfigs.debug
}
release {
// Caution! In production, you need to generate your own keystore file.
// see https://reactnative.dev/docs/signed-apk-android.
signingConfig signingConfigs.debug
signingConfig (keystorePropertiesFile.exists() ? signingConfigs.release : signingConfigs.debug)
def enableShrinkResources = findProperty('android.enableShrinkResourcesInReleaseBuilds') ?: 'false'
shrinkResources enableShrinkResources.toBoolean()
minifyEnabled enableMinifyInReleaseBuilds

View File

@ -6,26 +6,38 @@ import android.content.res.Configuration
import com.facebook.react.PackageList
import com.facebook.react.ReactApplication
import com.facebook.react.ReactNativeApplicationEntryPoint.loadReactNative
import com.facebook.react.ReactNativeHost
import com.facebook.react.ReactPackage
import com.facebook.react.ReactHost
import com.facebook.react.common.ReleaseLevel
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint
import com.facebook.react.defaults.DefaultReactNativeHost
import expo.modules.ApplicationLifecycleDispatcher
import expo.modules.ExpoReactHostFactory
import expo.modules.ReactNativeHostWrapper
class MainApplication : Application(), ReactApplication {
override val reactHost: ReactHost by lazy {
ExpoReactHostFactory.getDefaultReactHost(
context = applicationContext,
packageList =
override val reactNativeHost: ReactNativeHost = ReactNativeHostWrapper(
this,
object : DefaultReactNativeHost(this) {
override fun getPackages(): List<ReactPackage> =
PackageList(this).packages.apply {
// Packages that cannot be autolinked yet can be added manually here, for example:
// add(MyReactNativePackage())
}
)
}
override fun getJSMainModuleName(): String = ".expo/.virtual-metro-entry"
override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG
override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED
}
)
override val reactHost: ReactHost
get() = ReactNativeHostWrapper.createReactHost(applicationContext, reactNativeHost)
override fun onCreate() {
super.onCreate()

View File

@ -29,6 +29,8 @@ const RESERVED_KEYS = new Set([
"title",
"sub_title",
"subtitle",
"alt_name",
"alternative_names",
"code",
"sort_order",
"link",
@ -61,7 +63,9 @@ export function ExtraOrdinaryVesselsDetailRenderer({
const subtitle =
asString(data.sub_title) ||
asString(data.subtitle) ||
undefined;
(asStringArray(data.alt_name).length > 0
? asStringArray(data.alt_name).join(", ")
: undefined);
const mediaValue = data.images ?? data.media ?? data.point_images;
const media = Array.isArray(mediaValue)