react-native-div-layout
v0.0.3
Published
Div Layout provides a set of utility props to make designing with custom styles easier in React Native.
Downloads
6
Readme
Installation
To install the React Native Div Layout package, you can use the following command:
npm install react-native-div-layout
Usage
Once you have installed the package, you can start using it in your React Native application by importing it like this:
import { Div } from 'react-native-div-layout';
After that, you can use the Div component in your JSX code like any other React Native component. However, unlike other components, the Div component comes with a set of utility props that you can use to customize its appearance.
Here are some examples of the utility props that are available:
<Div bg="red">
<Text>Hello, world!</Text>
</Div>
Components and Props
Div
The Div component is a wrapper component that can be used to apply styles to child components. The following props can be used with the Div component: