O'Reilly logo

React Native Cookbook by Crysfel Villa, Stan Bershadskiy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Communicating from an iOS application to React Native

In the previous recipe, Embedding a React Native application inside an iOS application, we learned how to render our React Native sub-application inside a potentially larger native iOS app. Unless you're building a glorified application container/portal, what good is just rendering the React Native application? What if we wanted to connect the React Native application with our container so that it can consume information from the parent application?

This recipe will cover that very thing, sending data from the parent iOS application to our embedded React Native application. The React Native application can accept data when it is first instantiated, and then at runtime. We will be covering how ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required