Three-column layout with animation support for tablet displays
npm install react-native-three-column-layoutThis is a component that provides three-column layout with animation support for tablet displays.
Check out an example project here
``sh`
npm install react-native-three-column-layout
`jsx
import ThreeColumnLayout from 'react-native-three-column-layout'
return (
renderMiddleView={() =>
renderRightView={() =>
/>
)
const styles = StyleSheet.create({
box: {
flex: 1,
},
leftColumn: { backgroundColor: 'red' },
middleColumn: { backgroundColor: 'yellow' },
rightColumn: { backgroundColor: 'blue' },
})
`
`ts``
type RenderView = (callbacks: ThreeColumnLayoutProps) => React.ReactNode
type Props = {
renderLeftView: RenderView
renderMiddleView: RenderView
renderRightView: RenderView
leftViewVisible?: boolean
middleViewVisible?: boolean
leftViewWidth?: number
middleViewWidth?: number
}
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT