Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update integration-with-existing-apps docs #2473

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

friederbluemle
Copy link

Several updates and clarifications in the "Integration with existing apps" guide for Android.

For example, the code was still mentioning the Android support libraries (replaced by androidx.*). Also, there was a section about requesting the overlay permission (SYSTEM_ALERT_WINDOW) in onCreate(). This was fixed/improved in React Native 0.52+ and is no longer necessary (see facebook/react-native#16596). I rewrote and clarified the part about permissions and consolidated them into a section "Configuring AndroidManifest.xml".

@netlify
Copy link

netlify bot commented Feb 3, 2021

Deploy preview for react-native ready!

Built with commit 11fc50b

https://deploy-preview-2473--react-native.netlify.app

@Simek
Copy link
Collaborator

Simek commented Feb 15, 2021

Hi @friederbluemle, thank you so much for working on this PR! 👍

I will try to test all your changes locally and provide the feedback this week.

Refs #2118.


You can use Android Studio to create your release builds too! It’s as quick as creating release builds of your previously-existing native Android app. There’s one additional step, which you’ll have to do before every release build. You need to execute the following to create a React Native bundle, which will be included with your native Android app:

```shell
$ npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/com/your-company-name/app-package-name/src/main/assets/index.android.bundle --assets-dest android/com/your-company-name/app-package-name/src/main/res/
$ yarn react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain the reason for this change? Since CLI extraction from core, npx is a recommended way to call the RN scripts.

Also it would be nice if you can add the package manager Tabs (example: https://reactnative.dev/docs/next/typescript) to the code blocks which require calling yarn (or npm) directly.

@Simek Simek added the Needs Author Feedback An issue or PR which needs the feedback or response from the author. label Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Needs Author Feedback An issue or PR which needs the feedback or response from the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants