An open API service indexing awesome lists of open source software.

https://github.com/dckt/spacer-native

An utility component for pushing other elements and avoid `padding`, `margin` for React Native
https://github.com/dckt/spacer-native

react react-native reason-react reason-react-native reasonml

Last synced: 18 days ago
JSON representation

An utility component for pushing other elements and avoid `padding`, `margin` for React Native

Awesome Lists containing this project

README

          

# Spacer-native

An utility component for pushing other elements and avoid `padding`, `margin` everywhere.

## Usage

Install :

```console
yarn add @dck/spacer-native
```

### Web

```js
import { Text } from 'react-native'
import Spacer from '@dck/spacer-native'

const App = () => {
<>
Hello

world
>
}
```

### ReasonML

Add the module to your `bsconfig.json` file :

```
"bs-dependencies": [
...,
"@dck/spacer-native"
]
```

Use it in your app code :

```ocaml
[@react.component]
let make = () => {
<>
{"Hello" |> React.string}

{"World" |> React.string}
>
};
```