ReScript bindings for react-native-linear-gradient.
npm install @reason-react-native/linear-gradient@reason-react-native/linear-gradient


ReScript / Reason bindings forreact-native-linear-gradient.
Exposed as ReactNativeLinearGradient module.
@reason-react-native/linear-gradient X.y.\* means it's compatible withreact-native-linear-gradient X.y.\*
Whenreact-native-linear-gradient
is properly installed & configured by following their installation instructions,
you can install the bindings:
``console`
npm install @reason-react-native/linear-gradientor
yarn add @reason-react-native/linear-gradient
@reason-react-native/linear-gradient should be added to bs-dependencies inbsconfig.json
your :
`diff`
{
//...
"bs-dependencies": [
"reason-react",
"reason-react-native",
// ...
+ "@reason-react-native/linear-gradient"
],
//...
}
`reason
open ReactNative
module MyApp = {
let styles = Style.(
StyleSheet.create({
"container": viewStyle(~flex=1., ())
})
);
[@react.component]
let make = () => {
"Hello world"->React.string
}
};
``
---
Check the changelog for more informations about recent
releases.
---
Read the
contribution guidelines
before contributing.
We want this community to be friendly and respectful to each other. Please read
our full code of conduct
so that you can understand what actions will and will not be tolerated.