Skip to content

redlanta/react-native-jazzicon

 
 

Repository files navigation

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

About

React Native Jazzicon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%