As we discussed in the previous recipe, it is extremely beneficial for our embedded application to be aware of what's going on around it. We should also make an effort so that our Android parent application can be informed about what goes on inside the React Native application. The application should not only be able to perform business logic – it should be able to update its UI to reflect changes in the embedded app.
This recipe shows us how to leverage native modules to update the native UI that's created inside the Android application. We will have a text field in our React Native app that updates a text field that is rendered in the host Android application.