r/reactnative • • Apr 30 '22

FYI Stop Using Expo

To whoever needs to hear this: It's digging you into a hole you will have to dig out of with bad habits and dead ends. I promise.

Edit: I can't name off all the problems expo has in one go. It's one of those things you see constantly in small places and just know it is the biggest issue in development

0 Upvotes

65 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Apr 30 '22

import { useFonts } from 'expo-font';

Is a module...not a file

1

u/satya164 Apr 30 '22

you were talking about font file, expo-font is the module for loading font files and can load single font files like in the example that you said it can't.

why is expo-font a problem tho? just because it's a separate module to use fonts? if the same code was in expo package then it'd be fine?

0

u/[deleted] Apr 30 '22

Expo-font package weighs a lot more than a single .ttf file from Google. And then the dependencies ..my god

2

u/satya164 Apr 30 '22 edited Apr 30 '22

Expo-font package weighs a lot more than a single .ttf file from Google

Why are you comparing a native module to font file? Even then it's like 100kb in total, many of which are likely build files etc. that won't be included in the bundle, for multiple platforms - and smaller than a single font face of Roboto regular which is like 168kb.

And then the dependencies ..my god

It literally has a single dependency.

Expo has some disadvantages, but you're nitpicking the least consequential thing.