Highest Rated Comments


clarle4 karma

I'm interested in how Facebook runs integration tests with its React Native apps today.

There are some parts of my application that I would want to share between iOS and Android, like the signup flow. I know it's possible to create a React Native view and embed that within an existing native application, but how would I test something like that?

Does Facebook use existing iOS and Android testing tools (like UIAutomation, for instance) to functionally test RN apps? Or is there a separate way of doing integration testing with RN?

clarle2 karma

One of the biggest things that I'm considering using React Native for is to avoid having to go through the App Store / Play Store for review and to A/B test mobile experiences better, by remotely downloading a new version of the app each time.

Is there any work from the React Native team for optimizing a use case like this? From what I hear, most Facebook apps using RN in production don't do this and just bundle up the React Native code in the app itself.

The bundler right now causes the final app size to be pretty big, and includes a lot of library code as well.

I'd like to be able to pin down a version of the core library, and then dynamically update my application code, either for A/B testing or to deploy a new feature. Would that be a feature that the RN team would look into?