import React from 'react'; import { NavigationContainer } from '@react-navigation/native'; import { createNativeStackNavigator, NativeStackNavigationOptions, } from '@react-navigation/native-stack'; import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; import { ThemedButton, getTheme } from 'react-native-really-awesome-button'; import ThemeScreen from '../screens/ThemeScreen'; import Social from '../screens/Social'; import Progress from '../screens/Progress'; import { Entypo, Ionicons, FontAwesome5 } from '@expo/vector-icons'; const Tab = createBottomTabNavigator(); const Stack = createNativeStackNavigator(); const options = ({ route, navigation }: any) => { let index = typeof route?.params?.index !== 'undefined' ? route.params.index : 0; const theme = getTheme(index); const navigationOptions: NativeStackNavigationOptions = { title: theme.title, headerStyle: { backgroundColor: theme.background, }, headerTintColor: theme.color, headerTitleStyle: { fontWeight: 'bold', }, headerRight: () => theme.next && ( navigation.push('ThemeScreen', { index: index + 1 })} > Next ), headerLeft: () => theme.prev && ( navigation.pop()} > Prev ), }; return navigationOptions; }; function HomeNavigator() { return ( ); } //FontAwesome5 brush function App() { return ( ({ tabBarIcon: ({ color }: any) => { if (route.name === 'Themed Buttons') { return ; } if (route.name === 'Progress') { return ; } if (route.name === 'Social') { return ( ); } return null; }, tabBarActiveTintColor: '#038CD9', tabBarInactiveTintColor: '#C5C5C5', })} > ); } export default App;