@arturhoncharuk/react-native-jazzicon 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -7,9 +7,16 @@ React Native library for generating deterministic Jazzicons (Ethereum-style iden
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
|
-
npm i @arturhoncharuk/react-native-jazzicon
|
|
10
|
+
npm i @arturhoncharuk/react-native-jazzicon react-native-svg
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
+
If you don't already have `react-native-svg` in your project, install it as above to avoid duplicate native module errors.
|
|
14
|
+
|
|
15
|
+
Then run one of the following to link native dependencies:
|
|
16
|
+
|
|
17
|
+
- **Bare React Native (iOS):** `cd ios && pod install && cd ..`
|
|
18
|
+
- **Expo:** `npx expo prebuild`
|
|
19
|
+
|
|
13
20
|
## Usage
|
|
14
21
|
|
|
15
22
|
```tsx
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arturhoncharuk/react-native-jazzicon",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "React Native library for generating deterministic Jazzicons (Ethereum-style identicons) from addresses.",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|
|
@@ -86,7 +86,8 @@
|
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
88
|
"react": "*",
|
|
89
|
-
"react-native": "*"
|
|
89
|
+
"react-native": "*",
|
|
90
|
+
"react-native-svg": "*"
|
|
90
91
|
},
|
|
91
92
|
"workspaces": [
|
|
92
93
|
"example"
|
|
@@ -164,7 +165,6 @@
|
|
|
164
165
|
},
|
|
165
166
|
"dependencies": {
|
|
166
167
|
"color": "^5.0.3",
|
|
167
|
-
"mersenne-twister": "^1.1.0"
|
|
168
|
-
"react-native-svg": "^15.15.3"
|
|
168
|
+
"mersenne-twister": "^1.1.0"
|
|
169
169
|
}
|
|
170
170
|
}
|