corymsmith / react-native-icons

Quick and easy icons in React Native
MIT License
1.14k stars 141 forks source link

Font Icons Not Showing #52

Closed ghost closed 9 years ago

ghost commented 9 years ago

I followed through Getting Started instructions and I'm using the code from Example/index.ios.js.

My issue is that I don't see any of the font icons rendering on the simulator.

ios simulator screen shot jun 15 2015 9 46 12 pm

I don't see any error messages on React Packager responses on Terminal, but I see some error messages displaying on chrome console.

screen shot 2015-06-15 at 9 45 45 pm

Can someone point me in the right direction to resolve this issue?

corymsmith commented 9 years ago

I'm guessing that you may have missed a step. I'd try to go through the steps again if I were you. It doesn't appear that the code is included correctly

On Mon, Jun 15, 2015 at 10:50 PM, Ji Park notifications@github.com wrote:

I followed through Getting Started instructions and I'm using the code from Example/index.ios.js. My issue is that I don't see any of the font icons rendering on the simulator. ios simulator screen shot jun 15 2015 9 46 12 pm I don't see any error messages on React Packager responses on Terminal, but I see some error messages displaying on chrome console. screen shot 2015-06-15 at 9 45 45 pm

Can someone point me in the right direction to resolve this issue?

Reply to this email directly or view it on GitHub: https://github.com/corymsmith/react-native-icons/issues/52

ghost commented 9 years ago

Thanks for the response, I'll follow-up after double checking the code and going through steps again.

austin1030 commented 9 years ago

+1 I think I follow the steps correctly but don't see icon and get same error message.

Any thought?

corymsmith commented 9 years ago

Could be that the header search path is incorrect? I would double check that

On Thu, Jun 18, 2015 at 3:06 PM, austin1030 notifications@github.com wrote:

+1 I think I follow the steps correctly but don't see icon and get same error message.

Any thought?

Reply to this email directly or view it on GitHub: https://github.com/corymsmith/react-native-icons/issues/52#issuecomment-113301854

austin1030 commented 9 years ago

When I set the header search path, which folder point to?

austin1030 commented 9 years ago

OK, I resolved issue with "No manager class found...". Apparently for some reason I add libReactNativeIcons.a into ReactNativeIcons.xcodeproj instead of my own project. Now I see that instruction says "to your project." :)

Next problem. When my app gets to call below code, It get stuck "dispatch_once(predicate, block);" <Icon name='fontawesome|facebook-square' size={70} color='#3b5998' style={styles.facebook} />

Any idea?

corymsmith commented 9 years ago

I'm guessing the font files aren't included in the target?

On Fri, Jun 19, 2015 at 12:03 PM, austin1030 notifications@github.com wrote:

OK, I resolved issue with "No manager class found...". Apparently for some reason I add libReactNativeIcons.a into ReactNativeIcons.xcodeproj instead of my own project. Now I see that instruction says "to your project." :) Next problem. When my app gets to call below code, It get stuck "dispatch_once(predicate, block);" <Icon name='fontawesome|facebook-square' size={70} color='#3b5998' style={styles.facebook} />

Any idea?

Reply to this email directly or view it on GitHub: https://github.com/corymsmith/react-native-icons/issues/52#issuecomment-113607507

austin1030 commented 9 years ago

Did I add font files properly? screen shot 2015-06-19 at 6 03 39 pm

ghost commented 9 years ago

Thanks @austin1030, my issue was that I imported libReactNativeIcons.a into ReactNativeIcons.xcodeproj. I fixed this and I can now see the icon on the simulator.

In regards to the font file addition to Copy Bundle Resources, I imported the otf and ttf files.

austin1030 commented 9 years ago

Thank you @jhprks! That resolve my issue. I wasn't sure which files or folder to import. Awesome!

ghost commented 9 years ago

Good to know that helped! Well, looks like this one is resolved.

corymsmith commented 9 years ago

Glad you got this sorted, thanks for helping out Ji

On Sat, Jun 20, 2015 at 8:20 AM, Ji Park notifications@github.com wrote:

Closed #52.

Reply to this email directly or view it on GitHub: https://github.com/corymsmith/react-native-icons/issues/52#event-335919440