Skip to main content

StyledView

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

Implementation code

import { StyledView, Stack } from '@nexara/nativeflow';

const Component = () => {
return (
<StyledView f={1} themeBg>
<StyledView h={100} w={100} bg='red'></StyledView>
</StyledView>
);
}
export default Component;

Props

PropTypeDefaultDescription
fnumberSets the flex value of the view.
alignstringApplies alignItems style to the view.
justifystringApplies justifyContent style to the view.
fWrapstringApplies flexWrap to control wrapping behavior.
bgstringSets the background color of the view.
themeBgbooleanfalseIf true, uses the theme's secondary color as the background.
hnumberSets the height of the view.
wnumberSets the width of the view.
styleViewStyleAdditional custom styles applied to the view.