1.0.5 • Published 2 years ago

@castle-studios/react-native-jazzicon v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

React Native Jazzicon

NPM version

React Native component for jazzicon matching the same

Forked from stanislaw-glogowski's react-native-jazzicon and adapted to match Metamask's jazzicon draw config

Installation

  $ npm i @castle-studios/react-native-jazzicon -S
  $ react-native link react-native-svg

Usage

With numeric seed:

import Jazzicon from "@castle-studios/react-native-jazzicon";

export const App = () => {
  return (
     <Jazzicon size={120} seed={Math.round(Math.random() * 10000000)} />;
  )
}

With ethereum address:

import Jazzicon from "@castle-studios/react-native-jazzicon";

export const App () => {

  return (
    <Jazzicon
      size={120}
      address={"0x2152220ab60719d6f987f6de1478971c585841c7"}
    />
  );
}

License

The MIT License

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago