import Compatibility from "../\_compatibility.mdx"
import Usage from "../\_usage.mdx"
# Gap
## Usage
## How it works
React Native does not have support for gap within flexbox, however we can provide something similar via margins. This is not a complete replacement for gap and should be used with caution. You most likely also need to add widths and overflow-hidden to achieve your desired effect.
```tsx
// With this code
0
1
2
// It will output as this
0
1
2
```
## Example
```SnackPlayer name=Gap
import { Text, View } from 'react-native';
import { styled } from 'nativewind';
const StyledView = styled(View)
const StyledText = styled(Text)
const Box = ({ className, ...props }) => (
)
const App = () => {
return (
01
02
03
04
05
06
);
}
```
## Compatibility