From 79723f994aaa49b89b1f8251218694b674ae7dbc Mon Sep 17 00:00:00 2001
From: Manan Sharma <112090668+Manan-Sharma-5@users.noreply.github.com>
Date: Mon, 11 Nov 2024 10:02:55 +0530
Subject: [PATCH 1/2] fixed color scheme changing in dark mode
---
app/_layout.tsx | 33 +++++++++++-----------
components/InfluencerCard.tsx | 53 +++++++++++++++--------------------
2 files changed, 38 insertions(+), 48 deletions(-)
diff --git a/app/_layout.tsx b/app/_layout.tsx
index 4d081c0b..1cce9d47 100644
--- a/app/_layout.tsx
+++ b/app/_layout.tsx
@@ -24,6 +24,7 @@ import {
import { Provider } from "react-native-paper";
import { AutocompleteDropdownContextProvider } from "react-native-autocomplete-dropdown";
import { BrandContextProvider } from "@/contexts/brand-context.provider";
+import CustomPaperTheme from "@/constants/Theme";
export {
// Catch any errors thrown by the Layout component.
@@ -61,23 +62,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)}
+ />
);
}
};
From b5862a8fa9a574fa38df37abb83638a039c83c26 Mon Sep 17 00:00:00 2001
From: Manan Sharma <112090668+Manan-Sharma-5@users.noreply.github.com>
Date: Mon, 11 Nov 2024 10:03:15 +0530
Subject: [PATCH 2/2] fixed imports
---
app/_layout.tsx | 1 -
1 file changed, 1 deletion(-)
diff --git a/app/_layout.tsx b/app/_layout.tsx
index 1cce9d47..9241dab4 100644
--- a/app/_layout.tsx
+++ b/app/_layout.tsx
@@ -24,7 +24,6 @@ import {
import { Provider } from "react-native-paper";
import { AutocompleteDropdownContextProvider } from "react-native-autocomplete-dropdown";
import { BrandContextProvider } from "@/contexts/brand-context.provider";
-import CustomPaperTheme from "@/constants/Theme";
export {
// Catch any errors thrown by the Layout component.