tangled
alpha
login
or
join now
stream.place
/
streamplace
74
fork
atom
Live video on the AT Protocol
74
fork
atom
overview
issues
1
pulls
pipelines
convert to zcss
Natalie B.
2 weeks ago
28574754
6728baae
+21
-25
1 changed file
expand all
collapse all
unified
split
js
components
src
components
mobile-player
ui
audio-only-overlay.tsx
+21
-25
js/components/src/components/mobile-player/ui/audio-only-overlay.tsx
···
1
1
import { Volume2 } from "lucide-react-native";
2
2
-
import { StyleSheet } from "react-native";
2
2
+
import { zero } from "../../..";
3
3
import { usePlayerStore } from "../../../player-store";
4
4
import { Text, View } from "../../ui";
5
5
···
12
12
}
13
13
14
14
return (
15
15
-
<View style={styles.container}>
16
16
-
<View style={styles.content}>
15
15
+
<View
16
16
+
style={[
17
17
+
zero.layout.position.absolute,
18
18
+
zero.position.top[0],
19
19
+
zero.position.left[0],
20
20
+
zero.position.right[0],
21
21
+
zero.position.bottom[0],
22
22
+
zero.layout.flex.center,
23
23
+
]}
24
24
+
>
25
25
+
<View
26
26
+
style={[
27
27
+
zero.layout.flex.column,
28
28
+
zero.layout.flex.alignCenter,
29
29
+
zero.gap.all[3],
30
30
+
zero.px[6],
31
31
+
]}
32
32
+
>
17
33
<Volume2 color="#fff" size={48} />
18
18
-
<Text size="lg" weight="semibold" style={styles.text}>
34
34
+
<Text size="lg" weight="semibold" center>
19
35
Audio Only mode
20
36
</Text>
21
37
<Text
22
38
size="sm"
23
39
color="muted"
24
24
-
style={styles.text}
40
40
+
center
25
41
onPress={() => setSelectedRendition("source")}
26
42
>
27
43
Go to Settings > Quality to switch back to video.
···
30
46
</View>
31
47
);
32
48
}
33
33
-
34
34
-
const styles = StyleSheet.create({
35
35
-
container: {
36
36
-
position: "absolute",
37
37
-
top: 0,
38
38
-
left: 0,
39
39
-
right: 0,
40
40
-
bottom: 0,
41
41
-
justifyContent: "center",
42
42
-
alignItems: "center",
43
43
-
},
44
44
-
content: {
45
45
-
alignItems: "center",
46
46
-
gap: 12,
47
47
-
paddingHorizontal: 24,
48
48
-
},
49
49
-
text: {
50
50
-
textAlign: "center",
51
51
-
},
52
52
-
});