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

in the maven center the last version is 0.20.1 #8391

Closed
iceskyblue opened this issue Jun 24, 2016 · 3 comments
Closed

in the maven center the last version is 0.20.1 #8391

iceskyblue opened this issue Jun 24, 2016 · 3 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@iceskyblue
Copy link

in the maven center the last version is 0.20.1
http://facebook.github.io/react-native/releases/0.26/docs/embedded-app-android.html#content
when Integrating react native to an existing Apk, I can only get the last version react native is 0.20.1.
why???????????

@simonvaucher
Copy link

The upgrade instructions are buried somewhere.
Basically, you should update the project's build.gradle to:

allprojects {
    repositories {
        mavenLocal()
        jcenter()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$projectDir/../../node_modules/react-native/android"
        }
    }
}

and the app's build.gradle to:

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
...
    compile 'com.facebook.react:react-native:+'  // From node_modules
}

Works up until 0.25.1, I cannot ensure anything for later versions.

@ide
Copy link
Contributor

ide commented Jun 30, 2016

@simonvaucher is right - the AAR is distributed with npm, not Maven.

@npomfret
Copy link
Contributor

Hmm, so if I'm building a native module, where do I get the latest react-native jar file from if not maven?

@facebook facebook locked as resolved and limited conversation to collaborators Jun 30, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 19, 2018
react-one pushed a commit to react-one/react-native that referenced this issue Sep 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

5 participants