🏠 Rental - 🏗 Primitives
These are layout primitives used for quickly creating other components. They are based on the Reflexbox package used by Rebass. Indeed the main purpose of this library is to provide a similar experience to Rebass within React Native applications.
Usage
import { Box, Flex } from '@houseme-networks/rental-primitives';
<Box bg={"red"}>
{ /* Your Text, Images, Other Components, etc. */}
</Box>
<Flex flexDirection={"row"}>
{ /* Your Text, Images, Other Components, etc. */}
</Flex>
Box
and Flex
are basically the same however Flex
defaults to a Flexbox
component saving just a little time over using Box
and setting the display
property.