···33 launchImageLibraryAsync,
44 MediaTypeOptions,
55} from 'expo-image-picker'
66+// TODO: replace global i18n instance with one returned from useLingui -sfn
77+import {t} from '@lingui/macro'
6877-import * as Toast from 'view/com/util/Toast'
99+import * as Toast from '#/view/com/util/Toast'
810import {getDataUriSize} from './util'
9111012export async function openPicker(opts?: ImagePickerOptions) {
···1719 })
18201921 if (response.assets && response.assets.length > 4) {
2020- Toast.show('You may only select up to 4 images', 'exclamation-circle')
2222+ Toast.show(t`You may only select up to 4 images`, 'exclamation-circle')
2123 }
22242325 return (response.assets ?? [])
2426 .slice(0, 4)
2527 .filter(asset => {
2628 if (asset.mimeType?.startsWith('image/')) return true
2727- Toast.show('Only image files are supported', 'exclamation-circle')
2929+ Toast.show(t`Only image files are supported`, 'exclamation-circle')
2830 return false
2931 })
3032 .map(image => ({
+4-2
src/lib/sharing.ts
···11import {Share} from 'react-native'
22// import * as Sharing from 'expo-sharing'
33import {setStringAsync} from 'expo-clipboard'
44+// TODO: replace global i18n instance with one returned from useLingui -sfn
55+import {t} from '@lingui/macro'
4655-import {isAndroid, isIOS} from 'platform/detection'
77+import {isAndroid, isIOS} from '#/platform/detection'
68import * as Toast from '#/view/com/util/Toast'
79810/**
···2022 // React Native Share is not supported by web. Web Share API
2123 // has increasing but not full support, so default to clipboard
2224 setStringAsync(url)
2323- Toast.show('Copied to clipboard', 'clipboard-check')
2525+ Toast.show(t`Copied to clipboard`, 'clipboard-check')
2426 }
2527}