From d6ec627c8cd32836e5ed494606318959ca17fca1 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Thu, 26 Jan 2023 12:12:27 -0600 Subject: Update web build and web-specific components; RNW now builds --- src/view/com/composer/ExternalEmbed.tsx | 2 +- src/view/com/profile/ProfileHeader.tsx | 2 +- src/view/com/util/BlurView.tsx | 1 + src/view/com/util/BlurView.web.tsx | 4 ++++ 4 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 src/view/com/util/BlurView.tsx create mode 100644 src/view/com/util/BlurView.web.tsx (limited to 'src') 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 -- cgit 1.4.1