Fix some more warnings for web (#8316)

* export correct stub for web

* use default import for package.json
This commit is contained in:
Samuel Newman
2025-05-08 21:58:32 +03:00
committed by GitHub
parent a6455b3de3
commit 1c2a7b0b5a
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import {View} from 'react-native'
import {Image} from 'expo-image'
import {requestMediaLibraryPermissionsAsync} from 'expo-image-picker'
import {AppBskyGraphDefs} from '@atproto/api'
import {type AppBskyGraphDefs} from '@atproto/api'
import {msg, Trans} from '@lingui/macro'
import {useLingui} from '@lingui/react'
@@ -15,7 +15,7 @@ import {isNative, isWeb} from '#/platform/detection'
import * as Toast from '#/view/com/util/Toast'
import {atoms as a, useTheme} from '#/alf'
import {Button, ButtonText} from '#/components/Button'
import {DialogControlProps} from '#/components/Dialog'
import {type DialogControlProps} from '#/components/Dialog'
import * as Dialog from '#/components/Dialog'
import {Loader} from '#/components/Loader'
import {Text} from '#/components/Typography'
+1 -1
View File
@@ -44,7 +44,7 @@ export async function shareImageModal(_opts: {uri: string}) {
throw new Error('TODO')
}
export async function saveImageToAlbum(_opts: {uri: string; album: string}) {
export async function saveImageToMediaLibrary(_opts: {uri: string}) {
// TODO
throw new Error('TODO')
}
+2 -2
View File
@@ -5,14 +5,14 @@
import {init} from '@sentry/react-native'
import {version} from '#/../package.json'
import pkgJson from '#/../package.json'
/**
* Examples:
* - `dev`
* - `1.99.0`
*/
const release = process.env.SENTRY_RELEASE || version
const release = process.env.SENTRY_RELEASE || pkgJson.version
/**
* The latest deployed commit hash