Step 1. Add the JitPack repository to your build file
Add it in your root build.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.wix:react-native-navigation:2.0.1998'
}
<dependency>
<groupId>com.github.wix</groupId>
<artifactId>react-native-navigation</artifactId>
<version>2.0.1998</version>
</dependency>
libraryDependencies += "com.github.wix" % "react-native-navigation" % "2.0.1998"
:dependencies [[com.github.wix/react-native-navigation "2.0.1998"]]
React Native Navigation provides 100% native platform navigation on both iOS and Android for React Native apps. The JavaScript API is simple and cross-platform - just install it in your app and give your users the native feel they deserve. Ready to get started? Check out the docs.
Apps using React Native Navigation may target iOS 11 and Android 5.0 (API 21). You may use Windows, macOS or Linux as your development operating system.
As react-native-navigation
is a native navigation library - integrating it into your app will require editing native files. Follow the installation guides in the documentation.