Skip to content

Commit d9dce33

Browse files
committed
fix build blank issue
1 parent 1b92f17 commit d9dce33

File tree

4 files changed

+21
-28
lines changed

4 files changed

+21
-28
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@ yarn-error.*
3636
*.tsbuildinfo
3737

3838
app-example
39+
*.apk

components/chat/self-chat.tsx

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import { LinearGradient } from "expo-linear-gradient";
2-
import React from "react";
3-
import { Dimensions, StyleSheet, Text, View } from "react-native";
4-
5-
const { height } = Dimensions.get("window");
2+
import { StyleSheet, Text, useWindowDimensions, View } from "react-native";
63

74
const SelfChat = () => {
5+
const { height } = useWindowDimensions();
6+
87
return (
98
<View style={styles.selfChatContainer}>
109
<LinearGradient
@@ -19,7 +18,16 @@ const SelfChat = () => {
1918
ex, sed debitis quos, unde animi. Et eligendi quas magnam
2019
cum eveniet? Praesentium!
2120
</Text>
22-
<View style={styles.triangle} />
21+
<View
22+
style={[
23+
styles.triangle,
24+
{
25+
borderLeftWidth: height * 0.005,
26+
borderRightWidth: height * 0.005,
27+
borderTopWidth: height * 0.035,
28+
},
29+
]}
30+
/>
2331
</LinearGradient>
2432
</View>
2533
);
@@ -51,9 +59,6 @@ const styles = StyleSheet.create({
5159
triangle: {
5260
width: 0,
5361
height: 0,
54-
borderLeftWidth: height * 0.005,
55-
borderRightWidth: height * 0.005,
56-
borderTopWidth: height * 0.035,
5762
borderLeftColor: "transparent",
5863
borderRightColor: "transparent",
5964
borderTopColor: "#3498DB",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@
3333
"expo-symbols": "~0.2.2",
3434
"expo-system-ui": "~4.0.7",
3535
"expo-web-browser": "~14.0.2",
36-
"lucide-react-native": "^0.473.0",
3736
"react": "18.3.1",
3837
"react-dom": "18.3.1",
3938
"react-native": "0.76.6",
4039
"react-native-gesture-handler": "~2.20.2",
4140
"react-native-reanimated": "~3.16.7",
4241
"react-native-safe-area-context": "4.12.0",
4342
"react-native-screens": "~4.4.0",
43+
"react-native-svg": "15.8.0",
4444
"react-native-web": "~0.19.13",
4545
"react-native-webview": "13.12.5"
4646
},

pnpm-lock.yaml

Lines changed: 6 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)