1.0.3 • Published 5 months ago

react-native-color-gradient v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

Install:

npm install react-native-color-gradient

Supports Android, iOS, macOS, Windows and Web MIT License Lean Core Extracted

Example :

import { StyleSheet, SafeAreaView, View } from 'react-native'
import React from 'react'
import Picker from 'react-native-color-gradient'
export default function App() {
  return (
    <SafeAreaView style={styles.container}>
      <View style={styles.box}>
        <Picker width={300} />
      </View>
    </SafeAreaView>
  )
}

const styles = StyleSheet.create({
  container: { flex: 1 },
  box: { flex: 1, justifyContent: 'center', alignItems: 'center' }
})
PropTypeDefaultDescription
widthnumberscreenlength and width of the color palette
initColorstring#000original color
numberColumnnumber10number of columns
numberRownumber10number of rows
styleobject100style
hideColorSelectedbooleanfalseHide selected color block and slider

Event props :

onChange

Callback function when changing color

PropTypeDescription
colorstringcolor selected
1.0.3

5 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago