Skip to content

Getting Started: Android Integration with existing apps is inaccurate and outdated! #2118

@Monte9

Description

@Monte9

Description

The current docs for integration with Android app are inaccurate and outdated: https://reactnative.dev/docs/integration-with-existing-apps

I ran into this as I was trying to set up a brand new Android app with React Native and was mislead by the official docs and couldn't get the integration to work on the latest React Native version (v0.63).

When I googled a bit I found a Medium article by Danial which walks through the latest changes needed for Android: https://levelup.gitconnected.com/how-to-integrate-an-existing-android-app-with-react-native-6403ac4724f3

I was able to get the setup to work and so I think we need to make the effort to update the official docs so other developers don't run into the same roadblock.

Updates needed

Configuration

Here are the configuration changes needed for react-native: 0.60+

Usage

Here are the usage changes needed for react-native: 0.60+

Next Steps

Most of the changes outlined above such as using ReactApplication, ReactNativeHost, and ReactActivity have already been implemented in the official RNTester application. So we know it works and more importantly, that it's the right way to set up React Native in an Android app.

If these changes are welcome, I can go ahead and submit a PR to update the docs with the above-outlined changes. 🙂

Documentation version

Current (outdated) documentation for integration React Native in Android: https://github.com/facebook/react-native-website/blob/master/docs/integration-with-existing-apps.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    📼 Outdated DocsDocumentation is there, but outdated or wrong.StaleIssues/PR that are not getting much activity and are closer to be closed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions