about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-05-29 12:00:15 +0300
committerGitHub <noreply@github.com>2024-05-29 12:00:15 +0300
commit33de856c32711b2b5a83d5b27583eec0cc6e1248 (patch)
tree87ecae3c9c040dea8de4d6069430a18aa92c4dfc /src
parent613884a3d388b814244fc620c7a06c4742851585 (diff)
downloadvoidsky-33de856c32711b2b5a83d5b27583eec0cc6e1248.tar.zst
match web version exports (#4257)
Diffstat (limited to 'src')
-rw-r--r--src/lib/app-info.web.ts2
-rw-r--r--src/lib/media/manip.web.ts4
-rw-r--r--src/view/com/util/images/Image.web.tsx12
3 files changed, 8 insertions, 10 deletions
diff --git a/src/lib/app-info.web.ts b/src/lib/app-info.web.ts
index fe2bc5fff..7227e2863 100644
--- a/src/lib/app-info.web.ts
+++ b/src/lib/app-info.web.ts
@@ -1,6 +1,8 @@
 import {version} from '../../package.json'
 
+export const BUILD_ENV = process.env.EXPO_PUBLIC_ENV
 export const IS_DEV = process.env.EXPO_PUBLIC_ENV === 'development'
+export const IS_TESTFLIGHT = false
 
 // This is the commit hash that the current bundle was made from. The user can see the commit hash in the app's settings
 // along with the other version info. Useful for debugging/reporting.
diff --git a/src/lib/media/manip.web.ts b/src/lib/media/manip.web.ts
index 25315ebbd..4761f2fe0 100644
--- a/src/lib/media/manip.web.ts
+++ b/src/lib/media/manip.web.ts
@@ -159,3 +159,7 @@ async function downloadUrl(href: string, filename: string) {
   a.download = filename
   a.click()
 }
+
+export async function safeDeleteAsync() {
+  // no-op
+}
diff --git a/src/view/com/util/images/Image.web.tsx b/src/view/com/util/images/Image.web.tsx
index ecd9d730a..a5200b3ea 100644
--- a/src/view/com/util/images/Image.web.tsx
+++ b/src/view/com/util/images/Image.web.tsx
@@ -1,11 +1,3 @@
-import {
-  Image,
-  NativeSyntheticEvent,
-  ImageLoadEventData,
-  ImageSourcePropType,
-} from 'react-native'
-export default Image
+import {Image} from 'react-native'
+
 export const HighPriorityImage = Image
-export type OnLoadEvent = NativeSyntheticEvent<ImageLoadEventData>
-export type Source = ImageSourcePropType
-export type {ImageStyle} from 'react-native'