title: Received status code 401 from server: Unauthorized react native mapbox
body: <p>i am getting a authorization error when using mapbox in react native</p>
  <p><a href="https://api.mapbox.com/downloads/v1/navigation/android/maven/com/mapbox/navigation/ui/1.5.0/ui-1.5.0.pom%27" rel="nofollow noreferrer">https://api.mapbox.com/downloads/v1/navigation/android/maven/com/mapbox/navigation/ui/1.5.0/ui-1.5.0.pom'</a>. Received status code 401 from server: Unauthorized</p>
  <p>i am using the package ( <a href="https://www.npmjs.com/package/@homee/react-native-mapbox-navigation" rel="nofollow noreferrer">https://www.npmjs.com/package/@homee/react-native-mapbox-navigation</a> )</p>
  <p>according package documentation i am doing the same.</p>
  <p>my build.gradle file is</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  
  buildscript {
      ext {
          buildToolsVersion = "29.0.3"
          minSdkVersion = 21
          compileSdkVersion = 29
          targetSdkVersion = 29
          ndkVersion = "20.1.5948944"
      }
      repositories {
          google()
          jcenter()
            maven {
            url 'https://api.mapbox.com/downloads/v1/navigation/android/maven'
            authentication {
              basic(BasicAuthentication)
            }
            credentials {
              username = "mapbox"
              password = project.properties['MAPBOX_DOWNLOADS_TOKEN'] ?: "" 
            }
          }
      }
      dependencies {
          classpath("com.android.tools.build:gradle:4.1.0")
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  
  allprojects {
      repositories {
          mavenLocal()
          maven {
              // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
              url("$rootDir/../node_modules/react-native/android")
          }
          maven {
              // Android JSC is installed from npm
              url("$rootDir/../node_modules/jsc-android/dist")
          }
  
          google()
          jcenter()
          maven { url 'https://mapbox.bintray.com/mapbox' }
          maven { url 'https://www.jitpack.io' }
          maven {
            url 'https://api.mapbox.com/downloads/v1/navigation/android/maven'
            authentication {
              basic(BasicAuthentication)
            }
            credentials {
              username = "mapbox"
              password = project.properties['MAPBOX_DOWNLOADS_TOKEN'] ?: "" 
            }
          }
      }
  }</code></pre>
  </div>
  </div>
  </p>