react-native-mesh-gradient

1.0.1 • Public • Published

react-native-mesh-gradient

Mesh Gradient for React Native

Requirements

Mesh Gradient works only on iOS 18 or higher. Mesh Gradient requires Xcode 16 or higher.

To change the default Xcode build version, run the following command:

sudo xcode-select -s /path/to/Xcode.app

To check the current Xcode build version, run the following command:

xcodebuild -version

Preview

https://github.com/user-attachments/assets/cff00e3d-200f-47b6-b530-e4a856589e31

Installation

yarn add react-native-mesh-gradient

Usage

import { MeshGradient } from 'react-native-mesh-gradient'

<MeshGradient
  style={{ flex: 1 }}
  points={[
    [0.0, 0.0], [1.0, 0.0],
    [0.0, 1.0], [1.0, 1.0]
  ]}
  colors={[
    '#ff0000', '#dd8015',
    '#15cce4', '#e6d10f'
  ]}
  animatedColors={[
    '#15cce4', '#0000ff',
    '#ff0000', '#dd8015'
  ]}
  animationDuration={5}
/>

Package Sidebar

Install

npm i react-native-mesh-gradient

Weekly Downloads

11

Version

1.0.1

License

MIT

Unpacked Size

10.4 kB

Total Files

11

Last publish

Collaborators

  • koczenadrian