Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

external library does not work in Android #57

Closed
hanwencheng opened this issue Jun 21, 2016 · 4 comments
Closed

external library does not work in Android #57

hanwencheng opened this issue Jun 21, 2016 · 4 comments

Comments

@hanwencheng
Copy link

hanwencheng commented Jun 21, 2016

Hi,

Thanks for create such a convenient library for mobile app developing!

I just import the react-native-vector-icons/FontAwesome today, and I tried it in iOS, it works perfectly, after I tried it in Android, it did not work, said the import is nil, the iOS and Android platform share almost the same code, and they have not met such problem before. I followed carefully the import guide, so I guess it is the import question here.

I have write it into .re-natal and the import code is like

       (def icons (r/adapt-react-class (js/require "react-native-vector-icons/FontAwesome")))

I also following the steps to import font to Android and iOS, due to the assert failed error hint, I believe I did the right so I come to re-natal here.

Hanwen

@drapanjanas
Copy link
Owner

drapanjanas commented Jun 21, 2016

Hi Hanwen, common suggestion if something does not work is usually to try building a project with lein prod-build and see if that works. If that works the problem is not in your code but somwhere in re-natal, otherwise it is most probably your code or bug in RN or in the library. If I find some time I will try to repro this. Btw, you also could try asking about this in slack, someone might know something about using this lib

@hanwencheng
Copy link
Author

After trying lein prod-build, it does not work either. I feel it is quite strange while it works in iOS but not Android. As you suggested, I will ask it on slack, maybe someone has the same problem.

@hanwencheng
Copy link
Author

Hi, @drapanjanas inspired by the issue #5, I figure out that the reason production version did not work is due to my own code (I included the IOS component into Android project). Now they works both with figure-wheel and production version, we could close the issue. Thanks for you suggestions.

@drapanjanas
Copy link
Owner

Glad you work this out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants