diff --git a/src/app.tsx b/src/app.tsx index f9c3847..35c4fd2 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -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; diff --git a/src/navigation.tsx b/src/navigation.tsx index 6323235..a7e2f7e 100644 --- a/src/navigation.tsx +++ b/src/navigation.tsx @@ -6,7 +6,7 @@ import { import FontAwesome5 from 'react-native-vector-icons/FontAwesome5'; import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; import { BottomNavigation, useTheme } from 'react-native-paper'; -import { Home, Settings } from './screens'; +import { Home, Search, Tags, Settings } from './screens'; function NavigationContainer() { const TabNavigator = createBottomTabNavigator(); @@ -69,6 +69,24 @@ function NavigationContainer() { ), }} /> + ( + + ), + }} + /> + ( + + ), + }} + /> { - const { settings } = useSettings(); - return ( Home - Settings: {JSON.stringify(settings)} ); }; diff --git a/src/screens/index.ts b/src/screens/index.ts index c838203..78f6c97 100644 --- a/src/screens/index.ts +++ b/src/screens/index.ts @@ -1,2 +1,4 @@ export { default as Home } from './home'; +export { default as Search } from './search'; +export { default as Tags } from './tags'; export { default as Settings } from './settings'; diff --git a/src/screens/search.tsx b/src/screens/search.tsx new file mode 100644 index 0000000..f5928e9 --- /dev/null +++ b/src/screens/search.tsx @@ -0,0 +1,14 @@ +import React from 'react'; + +import { Text } from 'react-native-paper'; +import { PaddedView } from '../components'; + +const Search = () => { + return ( + + Search + + ); +}; + +export default Search; diff --git a/src/screens/tags.tsx b/src/screens/tags.tsx new file mode 100644 index 0000000..5588706 --- /dev/null +++ b/src/screens/tags.tsx @@ -0,0 +1,14 @@ +import React from 'react'; + +import { Text } from 'react-native-paper'; +import { PaddedView } from '../components'; + +const Tags = () => { + return ( + + Tags + + ); +}; + +export default Tags;