react-native-bpk-component-panel
Backpack React Native panel component.
Installation
npm install react-native-bpk-component-panel --save-dev
Usage
;;;;; const styles = StyleSheet; { const content = <BpkText> Lorem ipsum dolor sit amet consectetuer adipiscing elit Aenean commodo ligula eget dolor Aenean massa Cum sociis natoque penatibus et magnis dis parturient montes nascetur ridiculus mus </BpkText> ; return <View style=stylescontainer> <BpkPanel>content</BpkPanel> <BpkPanel padded=false>content</BpkPanel> </View > ; }
withDivider
HOC
;;;;; const BpkPanelWithDivider = ; const styles = StyleSheet; { const content = <BpkText> Lorem ipsum dolor sit amet consectetuer adipiscing elit Aenean commodo ligula eget dolor Aenean massa Cum sociis natoque penatibus et magnis dis parturient montes nascetur ridiculus mus </BpkText> ; return <View style=stylescontainer> <BpkPanelWithDivider stub=content>content</BpkPanelWithDivider> <BpkPanelWithDivider stub=content vertical>content</BpkPanelWithDivider> <BpkPanelWithDivider stub=content padded=false>content</BpkPanelWithDivider> </View > ; }
Props
BpkPanel:
Property | PropType | Required | Default Value |
---|---|---|---|
children | node | true | - |
padded | bool | false | true |
After withDivider
:
Property | PropType | Required | Default Value |
---|---|---|---|
stub | node | true | - |
vertical | bool | false | false |
mainStyle | object | false | null |
stubStyle | object | false | null |