https://github.com/rescript-react-native/linear-gradient
ReScript bindings for react-native-linear-gradient
https://github.com/rescript-react-native/linear-gradient
react react-native rescript rescript-react rescript-react-native
Last synced: 6 months ago
JSON representation
ReScript bindings for react-native-linear-gradient
- Host: GitHub
- URL: https://github.com/rescript-react-native/linear-gradient
- Owner: rescript-react-native
- License: mit
- Created: 2020-01-19T15:11:28.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2023-05-07T19:20:54.000Z (over 2 years ago)
- Last Synced: 2025-06-16T17:59:44.599Z (6 months ago)
- Topics: react, react-native, rescript, rescript-react, rescript-react-native
- Language: ReScript
- Homepage:
- Size: 304 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# `@rescript-react-native/linear-gradient`
[](https://github.com/rescript-react-native/linear-gradient/actions)
[](https://www.npmjs.com/@rescript-react-native/linear-gradient)
[](https://forum.rescript-lang.org/)
[ReScript](https://rescript-lang.org) bindings for
[`react-native-linear-gradient`](https://github.com/react-native-linear-gradient/react-native-linear-gradient).
Exposed as `ReactNativeLinearGradient` module.
`@rescript-react-native/linear-gradient` X.y.\* means it's compatible with
`react-native-linear-gradient` X.y.\*
## Installation
When
[`react-native-linear-gradient`](https://github.com/react-native-linear-gradient/react-native-linear-gradient)
is properly installed & configured by following their installation instructions,
you can install the bindings:
```console
npm install @rescript-react-native/linear-gradient
# or
yarn add @rescript-react-native/linear-gradient
```
`@rescript-react-native/linear-gradient` should be added to `bs-dependencies` in
your `bsconfig.json`:
```diff
{
//...
"bs-dependencies": [
"@rescript/react",
"rescript-react-native",
// ...
+ "@rescript-react-native/linear-gradient"
],
//...
}
```
## Usage
```rescript
open ReactNative
module MyApp = {
let styles = Style.(
StyleSheet.create({
"container": viewStyle(~flex=1., ())
})
);
[@react.component]
let make = () => {
"Hello world"->React.string
}
};
```
---
## Changelog
Check the [changelog](./CHANGELOG.md) for more informations about recent
releases.
---
## Contribute
Read the
[contribution guidelines](https://github.com/rescript-react-native/.github/blob/master/CONTRIBUTING.md)
before contributing.
## Code of Conduct
We want this community to be friendly and respectful to each other. Please read
[our full code of conduct](https://github.com/rescript-react-native/.github/blob/master/CODE_OF_CONDUCT.md)
so that you can understand what actions will and will not be tolerated.