Nativebase: Can NativeBase work without expo?

Created on 14 Apr 2018  路  8Comments  路  Source: GeekyAnts/NativeBase

Well, this is not a bug reporting. All issue posting specs are not applicable here.

NativeBase itself doesn't depend on expo. However, to use NativeBase, all examples are starting with a small clip of loading expo fonts. I am not sure if it is mandatory. Could you give an example illustrating how to load font without Expo.Font.loadAsync? Thank you.

All 8 comments

Check Docs

Thats a bad way of handling that question. I had the same one.

@salamancajr Please check the examples here. The master branch has no dependency on Expo.

screen shot 2018-09-03 at 10 17 56 pm
Also from the very first page in the official docs.
Always a good idea to read the docs 馃挴

Well, this is not a bug reporting. All issue posting specs are not applicable here.

NativeBase itself doesn't depend on expo. However, to use NativeBase, all examples are starting with a small clip of loading expo fonts. I am not sure if it is mandatory. Could you give an example illustrating how to load font without Expo.Font.loadAsync? Thank you.

Exact same question here, I'm having problems using my App without Expo, partially because I don't know how to load the fonts without Expo.Font.loadAsync. +1

We are using NativeBase without expo and it's working perfectly. To use any custom font you need to tell react-native to link it to your project. Check this tutorial for more information https://medium.com/react-native-training/react-native-custom-fonts-ccc9aacf9e5e

Hi @tux-tn, you are right. This is _"working"_. I've downloaded theionicons.ttf from ionicons.com and linking etc. works just fine. Yet my Icons have changed (without me changing their name) and I can't use the names on ionicons.com to correct that, as there are errors that the referenced Icon does not exist.

I've been at that place before, how do I fix that problem ?

Edit: Not sure if I've tested v1 and v2 of the Ionicons, yet it didn't work with the solution I had in place. Trying v1 and v2 now.

@njoye if you want to include a vector icon i suggest you to take a look at https://github.com/oblador/react-native-vector-icons there is many vector icons bundled including Ionicons and Font Awesome 5

Was this page helpful?
0 / 5 - 0 ratings