diff --git a/ios/WorkNotes/Info.plist b/ios/WorkNotes/Info.plist index 4ce5c515c..a8197d45f 100644 --- a/ios/WorkNotes/Info.plist +++ b/ios/WorkNotes/Info.plist @@ -26,7 +26,6 @@ NSAppTransportSecurity - NSAllowsArbitraryLoads NSAllowsLocalNetworking @@ -34,6 +33,28 @@ NSLocationWhenInUseUsageDescription + UIAppFonts + + AntDesign.ttf + Entypo.ttf + EvilIcons.ttf + Feather.ttf + FontAwesome.ttf + FontAwesome5_Brands.ttf + FontAwesome5_Regular.ttf + FontAwesome5_Solid.ttf + FontAwesome6_Brands.ttf + FontAwesome6_Regular.ttf + FontAwesome6_Solid.ttf + Foundation.ttf + Ionicons.ttf + MaterialIcons.ttf + MaterialCommunityIcons.ttf + SimpleLineIcons.ttf + Octicons.ttf + Zocial.ttf + Fontisto.ttf + UILaunchStoryboardName LaunchScreen UIRequiredDeviceCapabilities @@ -48,27 +69,5 @@ UIViewControllerBasedStatusBarAppearance - UIAppFonts - - AntDesign.ttf - Entypo.ttf - EvilIcons.ttf - Feather.ttf - FontAwesome.ttf - FontAwesome5_Brands.ttf - FontAwesome5_Regular.ttf - FontAwesome5_Solid.ttf - FontAwesome6_Brands.ttf - FontAwesome6_Regular.ttf - FontAwesome6_Solid.ttf - Foundation.ttf - Ionicons.ttf - MaterialIcons.ttf - MaterialCommunityIcons.ttf - SimpleLineIcons.ttf - Octicons.ttf - Zocial.ttf - Fontisto.ttf - diff --git a/src/App.tsx b/src/App.tsx index 5572993c9..fab7519d8 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,6 +1,4 @@ import React, {useEffect} from 'react'; -import {SafeAreaProvider} from 'react-native-safe-area-context'; - import {useAppDispatch} from './store'; import {initializeApp} from './store/app'; import MainNavigation from './components/main-navigation'; @@ -15,11 +13,9 @@ const App = () => { }, []); return ( - - - - - + + + ); }; diff --git a/src/context/PreferencesContext.tsx b/src/context/PreferencesContext.tsx index 3ea446fc4..958b5f7f8 100644 --- a/src/context/PreferencesContext.tsx +++ b/src/context/PreferencesContext.tsx @@ -1,11 +1,12 @@ import React, {createContext, useState, useEffect, useContext} from 'react'; -import {useColorScheme, ColorSchemeName} from 'react-native'; +import {useColorScheme, ColorSchemeName, StatusBar} from 'react-native'; import {useAppDispatch, useAppSelector, RootState} from '../store'; import {setColorScheme} from '../store/app/app.actions'; import {PaperProvider} from 'react-native-paper'; import {NavigationContainer} from '@react-navigation/native'; import CombinedDefaultTheme from '../themes/light'; import CombinedDarkTheme from '../themes/dark'; +import {SafeAreaProvider} from 'react-native-safe-area-context'; // Define the type for your context type PreferencesContextType = { @@ -48,12 +49,20 @@ export const PreferencesProvider = ({ }; return ( - - - {children} - - + + + + + {children} + + + ); }; diff --git a/src/screens/home.tsx b/src/screens/home.tsx index 25a69a55a..42ee6d257 100644 --- a/src/screens/home.tsx +++ b/src/screens/home.tsx @@ -1,7 +1,12 @@ import React, {useLayoutEffect, useEffect} from 'react'; import {View} from 'react-native'; -import {useTheme, FAB, ActivityIndicator, IconButton} from 'react-native-paper'; -import Icon from 'react-native-vector-icons/FontAwesome'; +import { + useTheme, + FAB, + Text, + ActivityIndicator, + IconButton, +} from 'react-native-paper'; import {useAppDispatch, useAppSelector, RootState} from '../store'; import {initializeNotes} from '../store/notes'; diff --git a/src/screens/preferences.tsx b/src/screens/preferences.tsx index 90328e76b..4bea1ce4d 100644 --- a/src/screens/preferences.tsx +++ b/src/screens/preferences.tsx @@ -68,7 +68,7 @@ const Preferences = ({route, navigation}) => { About - 0.0.1} /> + v0.0.1} />