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.
Incremental React Native Adoption in Android Apps
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.
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.
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.
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.
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
- integrates withReact Native integrates with Androidexposes Android primitives for Quest apps
“integrate React Native into your native Android app”
YouTube Verified3 sources· Talk
- feature
React Native Enterprise Framework: Scaffolds React Native applications and supports brownfield integrations.“a set of tools to help you generate your React Native application. It also has built-in support for brownfield integrations.”
YouTube Unverified1 source· Talk
- works at
“I'm a Senior Software Engineer at Callstack”
YouTube Unverified1 source· Talk
- role at
“I'm a Senior Software Engineer at Callstack”
YouTube Unverified1 source· Talk
- feature
React Native Brownfield: Provides functions and helpers to ease brownfield integration.“a set of functions or helpers to ease your brownfield integration”
YouTube Unverified1 source· Talk
- uses
“we'll consume it in a native Android application, the Pokémon Collection app”
YouTube Unverified1 source· Talk







