Skip to content

Commit a241129

Browse files
committed
Updated readme
1 parent a2a1fe1 commit a241129

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ export const iconSet = {
5454
```
5555

5656
## How to use:
57+
Somewhere in your code (e.g. the root component), just register your Iconset:
58+
```
59+
import {iconSet} from './iconSet';
60+
import Ikon from 'react-native-ikon';
61+
62+
Ikon.registerIconSet(iconSet);
63+
```
64+
65+
In your render-functions:
5766
```
5867
<Ikon name="lessons.openLesson" />
5968
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-ikon",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "flexible IconSets for react-native",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)