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 Android application to React Native

Now that we have covered how to render our React Native application inside an Android app in the Embedding a React Native application inside an Android application recipe, we need to take that to the next level. Our React Native application should be more than a dummy UI. It should be able to react to actions going on in its parent application.

In this recipe we will accomplish sending data from our Android application to our embedded React Native app. The React Native application can accept data when it is first instantiated, and then at runtime. We will be covering how to accomplish both methods. This recipe will use EditText in the Android app and set up one-way binding to the React Native ...

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