Add Search/Tags screen bases

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2023-07-09 19:41:36 +03:00
parent f483bf4430
commit cdc96bc7db
6 changed files with 51 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
import React, { JSX } from 'react';
import { Appearance, StatusBar } from 'react-native';
import { StatusBar, useColorScheme } from 'react-native';
import { PaperProvider } from 'react-native-paper';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import { RealmProvider } from '@realm/react';
@@ -10,7 +10,7 @@ import { SettingsProvider } from './contexts/settings';
import ActionButton from './components/actionButton';
function App(): JSX.Element {
const colorScheme = Appearance.getColorScheme();
const colorScheme = useColorScheme();
const isDarkMode = colorScheme === 'dark';
const theme = isDarkMode ? darkTheme : lightTheme;