I have seen many examples showing how it works with Function components but the question is how do I do it with Classes? I havent found a single example!
This is how it works with Functions: Snack
I really need help in this one please!
I have seen many examples showing how it works with Function components but the question is how do I do it with Classes? I havent found a single example!
This is how it works with Functions: Snack
I really need help in this one please!
I'm happy to let you know that as of react-navigation 6, this is entirely possible with class components!
yarn add @react-navigation/bottom-tabs
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
const Tab = createBottomTabNavigator();
class MainPage extends React.Component<any, any> {
render() {
return (
<Tab.Navigator>
<Tab.Screen name="Home" component={HomeScreen} />
<Tab.Screen name="Settings" component={SettingsScreen} />
</Tab.Navigator>
);
}
}