Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/craftzdog/react-native-three-column-layout

Three-column layout with animation support for tablet displays
https://github.com/craftzdog/react-native-three-column-layout

react-native

Last synced: 19 days ago
JSON representation

Three-column layout with animation support for tablet displays

Awesome Lists containing this project

README

        

# react-native-three-column-layout

![thumb](./thumb.svg)

This is a component that provides three-column layout with animation support for tablet displays.

## Example

Check out [an example project here](https://github.com/craftzdog/inkdrop-ui-mockup-react-native)

## Installation

```sh
npm install react-native-three-column-layout
```

## Usage

```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' },
})
```

## Props

```ts
type RenderView = (callbacks: ThreeColumnLayoutProps) => React.ReactNode
type Props = {
renderLeftView: RenderView
renderMiddleView: RenderView
renderRightView: RenderView
leftViewVisible?: boolean
middleViewVisible?: boolean
leftViewWidth?: number
middleViewWidth?: number
}
```

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT