From 605d73dac4b506356647836ad022ffbcac7b122b Mon Sep 17 00:00:00 2001 From: ShriPrakashBajpai Date: Tue, 10 Oct 2023 16:08:19 +0530 Subject: [PATCH] Icon background colours changed --- App.tsx | 4 ++-- RN-UI-LIB | 2 +- src/screens/permissions/BlockerScreenApps.tsx | 10 +++++++++- src/services/firebaseFetchAndUpdate.service.ts | 4 ++-- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/App.tsx b/App.tsx index b572746d..b459790c 100644 --- a/App.tsx +++ b/App.tsx @@ -42,7 +42,7 @@ import { StorageKeys } from './src/types/storageKeys'; import dayJs from 'dayjs'; import { GlobalImageMap, hydrateGlobalImageMap } from './src/common/CachedImage'; import analytics from '@react-native-firebase/analytics'; -import handleUpdatedConfigureValuesFromFirebase from './src/services/firebaseFetchAndUpdate.service'; +import fetchUpdatedRemoteConfig from './src/services/firebaseFetchAndUpdate.service'; import { addClickstreamEvent } from './src/services/clickstreamEventService'; initSentry(); @@ -125,7 +125,7 @@ function App() { }); React.useEffect(() => { - handleUpdatedConfigureValuesFromFirebase(); + fetchUpdatedRemoteConfig(); askForPermissions(); const appStateChange = AppState.addEventListener('change', async (change) => { handleAppStateChange(change); diff --git a/RN-UI-LIB b/RN-UI-LIB index 8876fa8a..b10108d9 160000 --- a/RN-UI-LIB +++ b/RN-UI-LIB @@ -1 +1 @@ -Subproject commit 8876fa8a05de03421e39f598a1365cf0ddfdb8ee +Subproject commit b10108d97c70125e17d9781654f7a4cf01b3f2da diff --git a/src/screens/permissions/BlockerScreenApps.tsx b/src/screens/permissions/BlockerScreenApps.tsx index 154aa3ec..ab7b8bf4 100644 --- a/src/screens/permissions/BlockerScreenApps.tsx +++ b/src/screens/permissions/BlockerScreenApps.tsx @@ -31,7 +31,7 @@ const BlockerScreenApps: React.FC<{ blacklistedAppsInstalled: Apps[] }> = ({ {blacklistedAppsInstalled.map((app: Apps, index: number) => ( - + {app.applicationName} {index < blacklistedAppsInstalled.length - 1 && ( @@ -49,6 +49,7 @@ const styles = StyleSheet.create({ container: { flexDirection: 'column', flex: 1, + backgroundColor: 'white', }, imageContainer: { @@ -90,6 +91,13 @@ const styles = StyleSheet.create({ fontSize: 12, }, + appIcon: { + width: 35, + height: 35, + backgroundColor: 'white', + borderRadius: 20, + }, + horizontalLine: { backgroundColor: '#E5E5E5', width: '100%', diff --git a/src/services/firebaseFetchAndUpdate.service.ts b/src/services/firebaseFetchAndUpdate.service.ts index f1b57dd2..3d0278d0 100644 --- a/src/services/firebaseFetchAndUpdate.service.ts +++ b/src/services/firebaseFetchAndUpdate.service.ts @@ -9,7 +9,7 @@ import handleBlacklistedAppsForBlockingCosmos from './blacklistedApps.service'; // const FIREBASE_FETCH_TIME = 15 * 60; const FIREBASE_FETCH_TIME = 1; -async function handleUpdatedConfigureValuesFromFirebase() { +async function fetchUpdatedRemoteConfig() { await remoteConfig().fetch(FIREBASE_FETCH_TIME); //15 minutes remoteConfig() .activate() @@ -39,4 +39,4 @@ async function handleUpdatedConfigureValuesFromFirebase() { }); } -export default handleUpdatedConfigureValuesFromFirebase; +export default fetchUpdatedRemoteConfig;