Box
Wrapper around View
component from react-native
, it accepts every props from react native View
component.
Import
import { Box } from 'react-native-ficus-ui';
Usage
Background color
EDITABLE EXAMPLE
Shadows
EDITABLE EXAMPLE
🎉
React Native 0.76 introduces new style props boxShadow
and filter
for View
, those props are now available on Ficus UI from version 1.3.0.
You can pass boxShadow
and filter
props directly to Box
component.
EDITABLE EXAMPLE
Borders
EDITABLE EXAMPLE
Border radius
EDITABLE EXAMPLE
Flex
EDITABLE EXAMPLE
Background image
EDITABLE EXAMPLE
As prop
The as prop can be used to style any React Native component with Ficus UI.
EDITABLE EXAMPLE