Fix broken Markdown layout as per spec changes
This commit is contained in:
parent
14bf9a06a7
commit
66bb5efa42
49
README.md
49
README.md
|
@ -19,7 +19,7 @@ or do it manually as described below:
|
||||||
|
|
||||||
Then either:
|
Then either:
|
||||||
|
|
||||||
#####Cocoapods
|
##### Cocoapods
|
||||||
add the following line to your Podfile:
|
add the following line to your Podfile:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
@ -29,7 +29,7 @@ pod 'BVLinearGradient', :path => '../node_modules/react-native-linear-gradient'
|
||||||
|
|
||||||
or:
|
or:
|
||||||
|
|
||||||
#####Manually
|
##### Manually
|
||||||
|
|
||||||
1. Open your project in XCode, right click on `Libraries` and click `Add
|
1. Open your project in XCode, right click on `Libraries` and click `Add
|
||||||
Files to "Your Project Name"` Look under `node_modules/react-native-linear-gradient` and add `BVLinearGradient.xcodeproj`. [(Screenshot)](http://url.brentvatne.ca/g9Wp).
|
Files to "Your Project Name"` Look under `node_modules/react-native-linear-gradient` and add `BVLinearGradient.xcodeproj`. [(Screenshot)](http://url.brentvatne.ca/g9Wp).
|
||||||
|
@ -60,38 +60,37 @@ For instance the podspec file does not contain the right data (author attributes
|
||||||
#### Android
|
#### Android
|
||||||
|
|
||||||
1. in `android/settings.gradle`
|
1. in `android/settings.gradle`
|
||||||
```
|
```
|
||||||
...
|
...
|
||||||
include ':react-native-linear-gradient'
|
include ':react-native-linear-gradient'
|
||||||
project(':react-native-linear-gradient').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-linear-gradient/android')
|
project(':react-native-linear-gradient').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-linear-gradient/android')
|
||||||
```
|
```
|
||||||
|
|
||||||
2. in `android/app/build.gradle` add:
|
2. in `android/app/build.gradle` add:
|
||||||
```
|
```
|
||||||
dependencies {
|
dependencies {
|
||||||
...
|
...
|
||||||
compile project(':react-native-linear-gradient')
|
compile project(':react-native-linear-gradient')
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
3. and finally, in `android/src/main/java/com/{YOUR_APP_NAME}/MainActivity.java` for react-native < 0.29,
|
3. and finally, in `android/src/main/java/com/{YOUR_APP_NAME}/MainActivity.java` for react-native < 0.29,
|
||||||
or `android/src/main/java/com/{YOUR_APP_NAME}/MainApplication.java` for react-native >= 0.29 add:
|
or `android/src/main/java/com/{YOUR_APP_NAME}/MainApplication.java` for react-native >= 0.29 add:
|
||||||
```java
|
```java
|
||||||
//...
|
//...
|
||||||
import com.BV.LinearGradient.LinearGradientPackage; // <--- This!
|
import com.BV.LinearGradient.LinearGradientPackage; // <--- This!
|
||||||
//...
|
//...
|
||||||
@Override
|
@Override
|
||||||
protected List<ReactPackage> getPackages() {
|
protected List<ReactPackage> getPackages() {
|
||||||
return Arrays.<ReactPackage>asList(
|
return Arrays.<ReactPackage>asList(
|
||||||
new MainReactPackage(),
|
new MainReactPackage(),
|
||||||
new LinearGradientPackage() // <---- and This!
|
new LinearGradientPackage() // <---- and This!
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
|
|
||||||
### Simple
|
### Simple
|
||||||
|
|
||||||
The following code will produce something like this:
|
The following code will produce something like this:
|
||||||
|
|
Loading…
Reference in New Issue