File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
modules/entry-list/templates Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ import { useColorScheme } from "nativewind"
4
4
import { Platform , StyleSheet , View } from "react-native"
5
5
import { useColor } from "react-native-uikit-colors"
6
6
7
+ /**
8
+ * @android In Android, the BlurView is experimental and not fully supported,
9
+ * so we use a normal View with a background color with **100% opacity**.
10
+ * However, if the `experimentalBlurMethod` prop is explicitly provided,
11
+ * we'll use the BlurView even on Android,
12
+ */
7
13
export const ThemedBlurView = ( {
8
14
ref,
9
15
tint,
@@ -13,7 +19,9 @@ export const ThemedBlurView = ({
13
19
14
20
const background = useColor ( "systemBackground" )
15
21
16
- return Platform . OS === "ios" ? (
22
+ const useBlurView = Platform . OS === "ios" || "experimentalBlurMethod" in rest
23
+
24
+ return useBlurView ? (
17
25
< BlurView
18
26
ref = { ref }
19
27
intensity = { 100 }
Original file line number Diff line number Diff line change @@ -164,7 +164,11 @@ export const EntryNormalItem = memo(
164
164
} }
165
165
>
166
166
< View className = "overflow-hidden rounded-full p-2" >
167
- < ThemedBlurView style = { StyleSheet . absoluteFillObject } intensity = { 30 } />
167
+ < ThemedBlurView
168
+ style = { StyleSheet . absoluteFillObject }
169
+ intensity = { 30 }
170
+ experimentalBlurMethod = "none"
171
+ />
168
172
{ isPlaying ? (
169
173
< PauseCuteFiIcon color = "white" width = { 24 } height = { 24 } />
170
174
) : isLoading ? (
You can’t perform that action at this time.
0 commit comments