react-native-vector-icons
Advanced tools
Comparing version 1.3.3 to 1.3.4
{ | ||
"name": "react-native-vector-icons", | ||
"version": "1.3.3", | ||
"version": "1.3.4", | ||
"description": "Customizable Icons for React Native with support for NavBar/TabBar, image source and full styling. Choose from 3000+ bundled icons or use your own.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -69,2 +69,20 @@ ![Vector Icons for React Native](https://cloud.githubusercontent.com/assets/378279/12009887/33f4ae1c-ac8d-11e5-8666-7a87458753ee.png) | ||
#### Option: With Gradle | ||
Edit `android/app/build.gradle` and add the following: | ||
```gradle | ||
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle" | ||
``` | ||
To customize the files being copied, add the following instead: | ||
```gradle | ||
project.ext.vectoricons = [ | ||
iconFontNames: [ 'MaterialIcons.ttf', 'EvilIcons.ttf' ] // Name of the font files you want to copy | ||
] | ||
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle" | ||
``` | ||
#### Option: Manually | ||
@@ -146,3 +164,3 @@ | ||
### Styling | ||
Since `Icon` builds on top of the `Text` component, most [style properties](http://facebook.github.io/react-native/docs/style.html) will work as expected, you might find it useful to play around with these: | ||
Since `Icon` builds on top of the `Text` component, most [style properties](http://facebook.github.io/react-native/docs/style.html) will work as expected, you might find it useful to play around with these: | ||
@@ -431,1 +449,2 @@ * `backgroundColor` | ||
Any bundled fonts are copyright to their respective authors and mostly under MIT or [SIL OFL](http://scripts.sil.org/OFL). | ||
@@ -47,3 +47,3 @@ 'use strict'; | ||
} | ||
return (<IconSet {...props} />); | ||
return (<IconSet allowFontScaling={false} {...props} />); | ||
} | ||
@@ -50,0 +50,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
836038
46
448