@novaviva/react-native-jazzicon

React Native Jazzicon

Usage no npm install needed!

<script type="module">
  import novavivaReactNativeJazzicon from 'https://cdn.skypack.dev/@novaviva/react-native-jazzicon';
</script>

README

React Native Jazzicon

NPM version

React Native component for jazzicon

Installation

  $ yarn add @novaviva/react-native-jazzicon
  $ react-native link react-native-svg

Usage

With numeric seed:

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

With ethereum address:

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

License

The MIT License