diff --git a/app/_layout.tsx b/app/_layout.tsx index 4d081c0b..9241dab4 100644 --- a/app/_layout.tsx +++ b/app/_layout.tsx @@ -61,23 +61,21 @@ export default function RootLayout() { return ( - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + ); } diff --git a/components/InfluencerCard.tsx b/components/InfluencerCard.tsx index f66bf474..1a27deca 100644 --- a/components/InfluencerCard.tsx +++ b/components/InfluencerCard.tsx @@ -133,44 +133,35 @@ const InfluencerCard = (props: InfluencerCardPropsType) => { }} > - + ); } else { return ( - { - if (!isSwiping) { - setMuted(!muted); - if (index === currentIndex) { - setIsPlaying(!isPlaying); - } + + source={ + item.appleUrl + ? { + uri: Platform.OS === "ios" ? item.appleUrl : item.playUrl, + } + : require("../assets/videos/ForBiggerJoyrides.mp4") + } + style={styles.media} + resizeMode={ResizeMode.COVER} + isLooping={false} + shouldPlay={false} + useNativeControls + onError={(error) => console.log("Video Error:", error)} + /> ); } };