Comments (12)
Hmm strange, try a few others... Potentially the icon package might be out
of date and not have some newer ones.
On 18 Dec 2015 17:16, "Marc Riera" [email protected] wrote:
This is a screenshot of an avatar:
This is what I'm using to render it:
<Avatar icon={'face'} backgroundColor={this.getBackgroundColor()} />
I've made sure I copied the correct font file and restarted the package,
but it still doen't load. Any idea?Thanks!
—
Reply to this email directly or view it on GitHub
#3
.
from react-native-material-design.
If I enter a random string, the warning shows a list of all available
icons. "face" is there :/
On Fri, Dec 18, 2015 at 5:42 PM Elliot Hesp [email protected]
wrote:
Hmm strange, try a few others... Potentially the icon package might be out
of date and not have some newer ones.
On 18 Dec 2015 17:16, "Marc Riera" [email protected] wrote:This is a screenshot of an avatar:
This is what I'm using to render it:
<Avatar
icon={'face'}
backgroundColor={this.getBackgroundColor()}
/>I've made sure I copied the correct font file and restarted the package,
but it still doen't load. Any idea?Thanks!
—
Reply to this email directly or view it on GitHub
<
#3.
—
Reply to this email directly or view it on GitHub
#3 (comment)
.Marc Riera
from react-native-material-design.
Hmm okay, which version of react native are you running? If you check in the build.gradle file in the android dir it'll tell you the exact version.
from react-native-material-design.
Oh, it looks like I missed fixing this file when upgrading to RN 0.16,
sorry. Will check if this is the source of the bug.
On Fri, Dec 18, 2015 at 5:49 PM Elliot Hesp [email protected]
wrote:
Hmm okay, which version of react native are you running? If you check in
the build.gradle file in the android dir it'll tell you the exact version.—
Reply to this email directly or view it on GitHub
#3 (comment)
.Marc Riera
from react-native-material-design.
Yeah 0.16 introduced auto font loading, also make sure the directory is called 'fonts' (note all lower case) too.
from react-native-material-design.
Hi, I rechecked it and I'm really using the correct RN version in the build.gradle file:
compile "com.facebook.react:react-native:0.16.+"
from react-native-material-design.
Strange then. If you head over to
https://github.com/oblador/react-native-vector-icons try running through
the installation guide on there, it should be getting loaded in for you.
On 19 Dec 2015 12:45, "Marc Riera" [email protected] wrote:
Hi, I rechecked it and I'm really using the correct RN version in the
build.gradle file:compile "com.facebook.react:react-native:0.16.+"
—
Reply to this email directly or view it on GitHub
#3 (comment)
.
from react-native-material-design.
I'm having the same problem. Same version of RN and latest version of react-native-vector-icons. I followed up the installation guide a couple of times, no success. @mrcasals did you solve the issue?
from react-native-material-design.
Okay I'll look at this tomorrow - I've got it working myself so hopefully something simple.
from react-native-material-design.
Icons work here on both 0.16 & 0.17... However I did upgrade the vector icons package (https://github.com/oblador/react-native-vector-icons/releases/tag/v1.0.3). Maybe that was causing the problem. The latest release (0.2.1) has this in it, so if you could give that a go, ta.
from react-native-material-design.
Considering its fixed post 0.2.1, will be closing this issue.
from react-native-material-design.
Have anyone problem with this?
My versions:
react-native-material-design: 0.3.2
react-native-vector-icons: 1.2.0
I copied fonts and tried the instal react-native-vector-icons - no success
from react-native-material-design.
Related Issues (20)
- Button Background Color Change!
- Button text not aligned HOT 2
- How to call an Android alarm in the react native HOT 1
- How to set Media width?
- app:compileDebugJavaWithJavac FAILED HOT 3
- App Drawer Icons have no Padding
- Update
- Update PropTypes library
- Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in. HOT 1
- Cannot read property 'oneOf' of undefined in 0.3.7 in React Native HOT 7
- update for PropTypes HOT 15
- Cannot read property 'replace' of undefined HOT 1
- Error in demo app. HOT 2
- error npm HOT 1
- App crashes when offline bundle is created
- react-native-material-design gives error in createIconSet HOT 1
- i am getting this error
- Fetching JS Bundle
- update for PropTypes
- Overriding a style
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-material-design.