demo.mp4
npm install react-native-simple-collapsible-tabs
import { createMaterialTopTabNavigator } from '@react-navigation/material-top-tabs';
import { CollapsibleTab } from 'react-native-simple-collapsible-tabs';
import { Header, TabBar } from './components';
const Tab = createMaterialTopTabNavigator();
<CollapsibleTab.Container>
<Header />
<Tab.Navigator
tabBar={(props) => <TabBar {...props} />}
initialRouteName="Example1"
>
<Tab.Screen name="Example1" component={List} />
<Tab.Screen name="Example2" component={List} />
<Tab.Screen name="Example3" component={List} />
</Tab.Navigator>
</CollapsibleTab.Container>;
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library