Since Bitmovin's native SDKs are distributed through custom [CocoaPods](🔗) and [Maven](🔗) repositories, the installation cannot be managed by React Native's Autolink and requires some extra steps. Please refer to the installation instructions for each platform below. For more information on integrating the native SDKs, you can refer to the [Getting Started guides](🔗).

## Adding the NPM package dependency

The library is available as an [NPM package](🔗), and can be added as a dependency to your project using any node-based package manager, e.g.:

  • **npm:** `npm install bitmovin-player-react-native --save`

  • **yarn:** `yarn add bitmovin-player-react-native`

## Setting up iOS dependencies

If you ran `pod install` in the `ios` folder after installing the node package and received an error similar to the one below, it is because Bitmovin's custom CocoaPods repository has not been added to the Podfile, and the iOS Player SDK could not be resolved.

To fix above error, open your `ios/Podfile` and set up Bitmovin's pods _source_ url and platform _target_ version:

Now, run `pod install` in the `ios` folder again (try with `--repo-update` if the error persists) - the error should now be resolved.

In case seeing the following error:

Please set up the CocoaPods CDN source in your `ios/Podfile`:

Now running `pod install` in the `ios` folder - the error should now be resolved.

## Setting up Android dependencies

The Android setup also needs an extra step in order to correctly resolve the Android Player SDK native dependency. Add Bitmovin's artifacts repository to the `allprojects.repositories` section of your `android/build.gradle` file: