🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@reason-react-native/linear-gradient

Package Overview
Dependencies
Maintainers
5
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@reason-react-native/linear-gradient

ReScript bindings for react-native-linear-gradient.

latest
Source
npmnpm
Version
2.5.7
Version published
Maintainers
5
Created
Source

@reason-react-native/linear-gradient

Build Status Version Chat

ReScript / Reason bindings for react-native-linear-gradient.

Exposed as ReactNativeLinearGradient module.

@reason-react-native/linear-gradient X.y.* means it's compatible with react-native-linear-gradient X.y.*

Installation

When react-native-linear-gradient is properly installed & configured by following their installation instructions, you can install the bindings:

npm install @reason-react-native/linear-gradient
# or
yarn add @reason-react-native/linear-gradient

@reason-react-native/linear-gradient should be added to bs-dependencies in your bsconfig.json:

{
  //...
  "bs-dependencies": [
    "reason-react",
    "reason-react-native",
    // ...
+    "@reason-react-native/linear-gradient"
  ],
  //...
}

Usage

open ReactNative

module MyApp = {
  let styles = Style.(
    StyleSheet.create({
      "container": viewStyle(~flex=1., ())
    })
  );

  [@react.component]
  let make = () => {
    <ReactNativeLinearGradient colors=[|"#faa", "#afa"|] style=styles##container>
      <Text>
        "Hello world"->React.string
      </Text>
    </ReactNativeLinearGradient>
  }
};

Changelog

Check the changelog for more informations about recent releases.

Contribute

Read the contribution guidelines before contributing.

Code of Conduct

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.

Keywords

rescript

FAQs

Package last updated on 17 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts