Skip to content

Commit

Permalink
fix(settings): restrict iOS app icon navigation to non-desktop devices
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert27 committed Oct 21, 2024
1 parent 8a9bad8 commit 8c0dc56
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion app.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"android": {
"package": "app.neuland",
"userInterfaceStyle": "automatic",
"versionCode": 178,
"versionCode": 179,
"splash": {
"image": "./src/assets/splash/splashLight.png",
"resizeMode": "contain",
Expand Down
13 changes: 4 additions & 9 deletions src/app/(screens)/clEvent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,7 @@ export default function ClEventDetail(): JSX.Element {
? [
{
header: t('pages.event.description'),
items: [
{
value: clEvent?.description,
layout: 'column' as any,
},
],
item: clEvent?.description,
},
]
: []),
Expand Down Expand Up @@ -175,10 +170,10 @@ export default function ClEventDetail(): JSX.Element {
await Share.share({
message: t('pages.event.shareMessage', {
title: clEvent?.title,

organizer: clEvent?.organizer,
date: formatFriendlyDateTime(
clEvent?.begin as unknown as string
date: formatFriendlyDateTimeRange(
new Date(clEvent?.begin as unknown as string),
new Date(clEvent?.end as unknown as string)
),
}),
})
Expand Down
4 changes: 3 additions & 1 deletion src/app/(screens)/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import {
Text,
View,
} from 'react-native'
import DeviceInfo from 'react-native-device-info'
import Animated, {
cancelAnimation,
useAnimatedStyle,
Expand Down Expand Up @@ -276,7 +277,8 @@ export default function Settings(): JSX.Element {
router.navigate('theme')
},
},
...(Platform.OS === 'ios'
...(Platform.OS === 'ios' &&
DeviceInfo.getDeviceType() !== 'Desktop'
? [
{
title: 'App Icon',
Expand Down
2 changes: 1 addition & 1 deletion src/localization/de/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
"optional": "Optional",
"invitationLink": "Einladungslink",
"eMail": "E-Mail",
"shareMessage": "Schau dir dieses Event an: {{title}} von {{organizer}} um {{date}}\nhttps://neuland.app/events"
"shareMessage": "Schau dir dieses Event an:\n{{title}} von {{organizer}} um {{date}}\nhttps://neuland.app/events"
},
"map": {
"search": {
Expand Down
2 changes: 1 addition & 1 deletion src/localization/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
"optional": "Optional",
"invitationLink": "Invitation link",
"eMail": "E-Mail",
"shareMessage": "Check out this event: {{title}} by {{organizer}} on {{date}}\nhttps://neuland.app/events"
"shareMessage": "Check out this event:\n{{title}} by {{organizer}} on {{date}}\nhttps://neuland.app/events"
},
"map": {
"search": {
Expand Down

0 comments on commit 8c0dc56

Please sign in to comment.