Skip to content

Commit

Permalink
fix(settings): add missing share url on android
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert27 committed Dec 31, 2024
1 parent 0422ee2 commit ac53d5a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/app/(screens)/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ export default function Settings(): React.JSX.Element {
bottomBoundX,
topBoundX,
randomizeColor
)
) as unknown as number
translateY.value = withBouncing(
velocity,
bottomBoundY,
topBoundY,
randomizeColor
)
) as unknown as number
} else {
cancelAnimation(translateX)
cancelAnimation(translateY)
Expand Down Expand Up @@ -341,8 +341,13 @@ export default function Settings(): React.JSX.Element {
trackEvent('Share', { type: 'app' })

void Share.share({
url: 'https://next.neuland.app/get',
message: t('menu.formlist.legal.shareMessage'),
url: 'https://next.neuland.app/get', // url option is only available on iOS
message:
Platform.OS === 'ios'
? t('menu.formlist.legal.shareMessage')
: t(
'menu.formlist.legal.shareMessageAndroid'
),
})
},
},
Expand Down
1 change: 1 addition & 0 deletions src/localization/de/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"about": "Über",
"share": "Teile die App",
"shareMessage": "Hol dir Neuland Next für dein Smartphone! 🚀",
"shareMessageAndroid": "Hol dir Neuland Next für dein Smartphone! 🚀\n\nhttps://next.neuland.app/get",
"download": "App herunterladen"
}
},
Expand Down
1 change: 1 addition & 0 deletions src/localization/en/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"about": "About",
"share": "Share the app",
"shareMessage": "Get Neuland Next for your phone! 🚀",
"shareMessageAndroid": "Get Neuland Next for your phone! 🚀\n\nhttps://next.neuland.app/get",
"download": "Download the app"
}
},
Expand Down

0 comments on commit ac53d5a

Please sign in to comment.