Skip to content

Commit

Permalink
magic
Browse files Browse the repository at this point in the history
  • Loading branch information
Naveen-g09 committed Mar 17, 2024
1 parent ea66ec0 commit 7f7de17
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
File renamed without changes.
15 changes: 5 additions & 10 deletions app/Stories.js → app/Stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,7 @@ const Stories = () => {
return (
<TouchableOpacity
key={index}
onPress={() =>
navigation.push("Status", {
name: data.name,
image: data.image,
})
}

>
<View
style={{
Expand All @@ -65,7 +60,7 @@ const Stories = () => {
position: "relative",
}}
>
{data.id == 1 ? (
{data?.id == 1 ? (
<View
style={{
position: "absolute",
Expand Down Expand Up @@ -98,7 +93,7 @@ const Stories = () => {
}}
>
<Image
source={data.image}
source={data?.image}
style={{
resizeMode: "cover",
width: "92%",
Expand All @@ -112,10 +107,10 @@ const Stories = () => {
style={{
textAlign: "center",
fontSize: 10,
opacity: data.id == 0 ? 1 : 0.5,
opacity: data?.id == 0 ? 1 : 0.5,
}}
>
{data.name}
{data?.name}
</Text>
</View>
</TouchableOpacity>
Expand Down
13 changes: 10 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@
"jsx": "react",
"strict": true,
"paths": {
"@/*": ["./*"]
"@/*": [
"./*"
]
}
},
"include": ["**/*.ts", "**/*.tsx", ".expo/types/**/*.ts", "expo-env.d.ts"]
}
"include": [
"**/*.ts",
"**/*.tsx",
".expo/types/**/*.ts",
"expo-env.d.ts"
]
}

0 comments on commit 7f7de17

Please sign in to comment.