about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-01-26 12:12:27 -0600
committerPaul Frazee <pfrazee@gmail.com>2023-01-26 12:12:27 -0600
commitd6ec627c8cd32836e5ed494606318959ca17fca1 (patch)
tree90de43466e097263730e4f248584f68135bcc947 /src
parent7e3f6f030680a8cf7b5baa3ce6f33acd5766fca8 (diff)
downloadvoidsky-d6ec627c8cd32836e5ed494606318959ca17fca1.tar.zst
Update web build and web-specific components; RNW now builds
Diffstat (limited to 'src')
-rw-r--r--src/view/com/composer/ExternalEmbed.tsx2
-rw-r--r--src/view/com/profile/ProfileHeader.tsx2
-rw-r--r--src/view/com/util/BlurView.tsx1
-rw-r--r--src/view/com/util/BlurView.web.tsx4
4 files changed, 7 insertions, 2 deletions
diff --git a/src/view/com/composer/ExternalEmbed.tsx b/src/view/com/composer/ExternalEmbed.tsx
index 7eaec5f04..ed4bfb5ed 100644
--- a/src/view/com/composer/ExternalEmbed.tsx
+++ b/src/view/com/composer/ExternalEmbed.tsx
@@ -6,7 +6,7 @@ import {
   View,
 } from 'react-native'
 import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
-import {BlurView} from '@react-native-community/blur'
+import {BlurView} from '../util/BlurView'
 import LinearGradient from 'react-native-linear-gradient'
 import {AutoSizedImage} from '../util/images/AutoSizedImage'
 import {Text} from '../util/text/Text'
diff --git a/src/view/com/profile/ProfileHeader.tsx b/src/view/com/profile/ProfileHeader.tsx
index d0cf49769..cebeea788 100644
--- a/src/view/com/profile/ProfileHeader.tsx
+++ b/src/view/com/profile/ProfileHeader.tsx
@@ -12,7 +12,7 @@ import {
   FontAwesomeIcon,
   FontAwesomeIconStyle,
 } from '@fortawesome/react-native-fontawesome'
-import {BlurView} from '@react-native-community/blur'
+import {BlurView} from '../util/BlurView'
 import {ProfileViewModel} from '../../../state/models/profile-view'
 import {useStores} from '../../../state'
 import {
diff --git a/src/view/com/util/BlurView.tsx b/src/view/com/util/BlurView.tsx
new file mode 100644
index 000000000..66b41cc26
--- /dev/null
+++ b/src/view/com/util/BlurView.tsx
@@ -0,0 +1 @@
+export {BlurView} from '@react-native-community/blur'
diff --git a/src/view/com/util/BlurView.web.tsx b/src/view/com/util/BlurView.web.tsx
new file mode 100644
index 000000000..a6097bf85
--- /dev/null
+++ b/src/view/com/util/BlurView.web.tsx
@@ -0,0 +1,4 @@
+import {View} from 'react-native'
+
+// TODO can actually support this, see https://github.com/Kureev/react-native-blur/issues/417
+export const BlurBiew = View