Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ReScript bindings for react-native-linear-gradient

License

NotificationsYou must be signed in to change notification settings

rescript-react-native/linear-gradient

Build StatusVersionReScript Forum

ReScript bindings forreact-native-linear-gradient.

Exposed asReactNativeLinearGradient module.

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

Installation

Whenreact-native-linear-gradientis properly installed & configured by following their installation instructions,you can install the bindings:

npm install @rescript-react-native/linear-gradient#oryarn add @rescript-react-native/linear-gradient

@rescript-react-native/linear-gradient should be added tobs-dependencies inyourbsconfig.json:

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

Usage

openReactNativemoduleMyApp= {letstyles=Style.(StyleSheet.create({"container":viewStyle(~flex=1., ())    })  );  [@react.component]letmake= ()=> {    <ReactNativeLinearGradientcolors=[|"#faa","#afa"|]style=styles##container>      <Text>"Hello world"->React.string      </Text>    </ReactNativeLinearGradient>  }};

Changelog

Check thechangelog for more informations about recentreleases.


Contribute

Read thecontribution guidelinesbefore contributing.

Code of Conduct

We want this community to be friendly and respectful to each other. Please readour full code of conductso that you can understand what actions will and will not be tolerated.

About

ReScript bindings for react-native-linear-gradient

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Sponsor this project

 

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp