0.0.3 • Published 6 years ago

react-native-jazzicon-custom-colors v0.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

react-native-jazzicon-custom-colors

NPM version

This is a forked version for stanislaw-glogowski's react-native-jazzicon

Installation

  $ npm i react-native-jazzicon-custom-colors -S
  $ react-native link react-native-svg

Usage

With numeric seed:

import Jazzicon from 'react-native-jazzicon-custom-colors'
 
export default class App extends React.Component {
   render() {
      return (
        <Jazzicon colors={myColorsArray} size={120} seed={Math.round(Math.random() * 10000000)} />
      );
  }
}

With ethereum address:

import Jazzicon from 'react-native-jazzicon-custom-colors'
 
export default class App extends React.Component {
   render() { 
      return ( 
        <Jazzicon colors={myColorsArray} size={120} address={"0x2152220ab60719d6f987f6de1478971c585841c7"} />
      );
  }
}

License

The MIT License