r/reactnative • u/[deleted] • 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
1
u/satya164 Apr 30 '22 edited Apr 30 '22
They even have an example of how to do that: https://docs.expo.dev/guides/using-custom-fonts/#a-minimal-but-complete-working-example
It can with bare workflow. But not every project can use Hermes on iOS given that it doesn't support things like intl. And not switching to Hermes isn't actually preventing any critical functionality. It'll probably be possible someday.
There's https://docs.expo.dev/versions/latest/sdk/background-fetch/ depending on the use case. Though very few apps actually need to execute code in the background.
App size is not a problem with EAS. Only the modules that you install get bundled.
Neither are they in React Native. While many are already included, you'd need to use third-party libraries anyway if you don't use Expo so there's no disadvantage. Many third-party libs can be used using a custom dev client with a config plugin. And there's always the option to use bare workflow.
You can always use bare workflow, but not every project needs to use a third-party service.
Those are the supported versions by React Native
You can build locally if you want like you'd do with regular React Native
Many of these are very specific use cases, so "stop using expo" isn't appropriate advice for everyone. And all of those use cases can be achieved by ejecting to bare workflow - which anyone can do if their use cases change in the future.
I'm a professional working with React Native since it was launched.
I have had many clients using Expo bare workflow and don't see any reason to completely remove it. But like any library/sdk you're already using a lot will be difficult to completely remove so don't see why it's specifically against Expo.