Skip to content

Commit 145559b

Browse files
authored
Merge pull request #2 from wagnerpal/update-read-me
Update read me
2 parents d978ece + d9592ec commit 145559b

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

README.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# react-native-asset
2-
[![npm version](https://badge.fury.io/js/react-native-asset.svg)](https://badge.fury.io/js/react-native-asset)[![Build Status](https://travis-ci.org/unimonkiez/react-native-asset.svg?branch=master)](https://travis-ci.org/unimonkiez/react-native-asset)
2+
<!-- [![npm version](https://badge.fury.io/js/react-native-asset.svg)](https://badge.fury.io/js/react-native-asset)[![Build Status](https://travis-ci.org/unimonkiez/react-native-asset.svg?branch=master)](https://travis-ci.org/unimonkiez/react-native-asset) -->
3+
4+
## This is an extended version of the [`react-native-asset`](https://github.com/unimonkiez/react-native-asset) project with support of `react-native.config.js` sourceDirs
5+
6+
### Installation
7+
8+
```js
9+
yarn add --dev wagnerpal/react-native-asset#1.0.0
10+
```
11+
or
12+
```js
13+
npm install --save-dev wagnerpal/react-native-asset#1.0.0
14+
```
315

416
## Link and unlink assets to your react-native project with ease!
517

@@ -39,6 +51,20 @@
3951
],
4052
```
4153

54+
* This version is considering the `react-native.config.js` sourceDirs to find the project folders
55+
```js
56+
...
57+
project: {
58+
android: {
59+
sourceDir: './apps/android'
60+
},
61+
ios: {
62+
sourceDir: './apps/ios'
63+
}
64+
},
65+
```
66+
67+
4268
* Run the command and linking + unlinking is automatic!
4369
```bash
4470
react-native-asset

0 commit comments

Comments
 (0)