Convert vanilla React Native app to Expo

07 Jan 2018

Being new to React Native I was looking for a way to easily test my app on a physical device and I came across Expo. I had heard that setting up Android Studio was a painful experience (according to a video in this course) and also wasn’t enjoying running xcode on my basic 2012 Macbook Air. To use Expo I would need to convert my existing React Native app to an Expo app.

A basic example is discussed here: https://github.com/expo/xde#converting-an-existing-project-to-work-with-expo
However, my app makes use of libraries that use native code (with react-native link) and therefore I would need to detach the app and use ExpoKit: https://docs.expo.io/versions/v15.0.0/guides/detach.html

 

I decided that converting to expo, detaching and using ExpoKit all for the purpose of testing on my actual device probably wasn’t the smartest thing to do. I played around with Visual Studio App Center and TestFlight but I’ll discuss that in another post.

The best solution for me was to get a more powerful development machine and use xcode and Android Studio to test on my phone

Here is a very related post on the problems faced when converting an existing app to Expo. The author faced issues with using TypeScript, Relay, ExNavigation (rather than React Navigation), XDE and native dependencies. https://medium.com/2-minute-revolution-developer-blog/our-review-of-expo-and-why-we-dont-think-it-s-ready-for-prime-time-bb0897657295