Skip to main content
Version: 1.0.0

StyledView

StyledView component render a view that can easily be re-style by using props.

Implementation code

import { StyledView, Stack } from 'rn-nativeflow';

const Component = () => {
return (
<StyledView f={1} themeBg>
<StyledView h={100} w={100} bg='red'></StyledView>
</StyledView>
);
}
export default Component;
PropTypeDefaultDescription
fnumberIt sets the flex property on the view
alignstringIt apply align items property on the view
justifystringIt apply justify content property on the view
fWrapstringIt apply flex wrap property on the view
bgstringIt sets the background color of the view
themeBgbooleanIt apply background color according to theme
hnumberIt set the height of the view
wnumberIt set the width of the view
styleobjectIt takes styles object and apply on the view