WhoBuilt

Incremental React Native Adoption in Android Apps

Sep 8, 2025· 8 min· 419 views·Watch on YouTube

Speaker

Hur, a senior software engineer at Callstack who works on performance optimization and brownfield integrations, demonstrates adding a React Native screen to a native Android app.

Scaffold a React Native app

Hur introduces the React Native Enterprise Framework (RNEF), which scaffolds React Native apps and supports brownfield integrations. He creates an app named HelloBrownfield, choosing Yarn and Metro.

Inspect the Android module

The scaffold includes an Android module that can be exported as an Android Archive (AAR). Its React Native Host Manager uses the React Native Brownfield package to initialize the React Native instance. Hur points viewers to its documentation for Java, Kotlin, Objective-C, and Swift.

Publish and consume the AAR

Hur generates the AAR and publishes it to Maven Local, then adds Maven Local and the library dependency to the Pokémon Collection app. He identifies the package coordinates from the module’s build.gradle: group ID hellobrownfieldreact and artifact ID hellobrownfield.

Initialize React Native in Android

After syncing Gradle, Hur adds the initialization call to the native app’s main activity. He then replaces the existing Open Settings button area with a FrameLayout to host a React Native fragment.

Show the React Native screen

Hur creates a fragment using the module name from the React Native app’s package.json and commits it to the layout. The app displays the React Native UI, demonstrating the integration in the Pokémon Collection app. He points viewers to Callstack’s incremental adoption guide and React Native Brownfield repository.

Takeaways

  • RNEF can scaffold a React Native app with an Android module that exports as an AAR.
  • Publishing the AAR to Maven Local lets a native Android app consume it as a Gradle dependency.
  • Initialize the React Native instance in the native activity before presenting its UI.
  • A FrameLayout can host a React Native fragment within an existing Android screen.
  • Use the package name from package.json when creating the React Native fragment.

Mentioned in this talk

Search inside this talk

What was claimed 6

Related talks