React Native module that allow to manage multiple Navigator at the same time to create Master-Detail layout for tablet
npm install @lcaprini/react-native-splitviewReact Native module that allow to manage multiple Navigator at the same time to create Master-Detail layout for tablet.
Thanks to retyui's react-native-split-view-demo for his work that inspire
this module.
``sh`
npm install react-native-splitview @react-navigation/native
`ts
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { setMasterNavigator, SplitView } from 'react-native-splitview';
import MasterStack from './stacks/MasterStack';
import DetailStack from './stacks/DetailStack';
const Stack = createNativeStackNavigator();
const MainSplitView = () => {
return (
detail={
/>;
)
};
export default function App() {
return (
component={MainSplitView}
options={{ headerShown: false }}
/>
);
}
``
See the contributing guide to learn how to contribute to the repository and the development workflow.
See the MIT license
---
Made with create-react-native-library