Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions app/events/[eventId]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { useCallback, useState } from "react";
import {
Dimensions,
Image,
Platform,
RefreshControl,
SafeAreaView,
ScrollView,
Expand Down Expand Up @@ -72,8 +73,11 @@ export default function EventScreen() {
{query.data.imageUrl && (
<Image
source={{ uri: query.data.imageUrl }}
width={Dimensions.get("window").width}
height={Dimensions.get("window").width / (100 / 35)}
style={{
width: Dimensions.get("window").width,
height: Dimensions.get("window").width / (100 / 35),
}}
className="object-contain"
resizeMode="contain"
/>
)}
Expand Down
2 changes: 1 addition & 1 deletion app/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default function HomeScreen() {
>
<FadeInView>
<EventList
className={cn("opacity-100 transition duration-500", {
className={cn("opacity-100 transition-all duration-500", {
"opacity-50": isRefreshing,
})}
eventsWithRoute={query.data}
Expand Down
7 changes: 1 addition & 6 deletions components/fade-in-view.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ReactNode } from "react";
import { Platform } from "react-native";
import { preview } from "react-native-ide";
import Animated, { FadeIn as AnimatedFadeIn } from "react-native-reanimated";

Expand All @@ -12,11 +11,7 @@ export const FadeInView = ({
children?: ReactNode;
props?: any;
}) => {
const isWeb = Platform.OS === "web";

return isWeb ? (
<>{children}</>
) : (
return (
<Animated.View entering={AnimatedFadeIn} {...props}>
{children}
</Animated.View>
Expand Down
Loading