-
Notifications
You must be signed in to change notification settings - Fork 191
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
React Native Gradle Plugin Shouldn't only be for New Architecture #547
Comments
Isn't the plugin from the app doing that? Have you verified that it's needed? The example app uses the latest React Native template and this setup works fine. |
yeah the plugin is supposed to do that, but the template is only installing the new architecture is enabled from the code here:
When I create new react native app, in the Try creating with this and see the build.gradle:
|
Not sure what you mean. What's the problem exactly? Is there an issue when using the module with the old architecture? |
The problem is that the template to create new module only installs the plugin on the new architecture while react native example on new projects installs it without any condition. I'll try my module with the old architecture this week once i've finalised it. but shouldn't the template be the same with react native example? I'm not sure how better I can be at explaining the problem if you still can't see it. I can still try to reproduce it with the old architecture |
Why should the library template be the same as example app? Library and apps are different things. The templates are based on examples from Meta which adds the plugin conditionally. Either way, if the current setup is working without any problems then I don't see why this is an issue. For this to be an issue it needs to be breaking something or causing problems. |
Yeah that make sense, I was just curious why initially because my app have some problems that was supposed to be fixed by the gradle plugin but it's not installed because of the condition. I didn't know the reason why is that there that's why.
Got it. it seems that from one of the main android package in react native repo it doesn't have the conditions though? I can't see any other examples because the main docs from React Native points to your repo to create a new module |
Description
This line in the
build.gradle
At this point the gradle plugin also helps replacing
react-native
toreact-android
from mavenCentral. should this plugin also applies to app without new architecture? I fail to see why is this only needed for new architecturesorry if this is a dumb report
Packages
Selected options
react-native-builder-bob/packages/create-react-native-library/templates/native-common/android/build.gradle
Lines 30 to 32 in aa4d723
Link to repro
react-native-builder-bob/packages/create-react-native-library/templates/native-common/android/build.gradle
Lines 30 to 32 in aa4d723
Environment
React Native
The text was updated successfully, but these errors were encountered: