Installing React Native-Zendrive SDK for Android

The following instructions will help you install RN-Zendrive SDK for Android applications.

We support RN v0.61.0 to 0.76

Package Installation

Run the following script to install the RN-Zendrive SDK for Android:

$ npm install react-native-zendrive --save or $ yarn add react-native-zendrive

Clean and build your project to automatically pick up the react-native-zendrive dependency.

Troubleshooting

  • If you notice build errors pertaining to minSdkVersion, note that this could be because the minimum version of Android SDK supported by Zendrive SDK is v21. RN template supports a minimum Android SDK v16. To resolve all errors pertaining to Android SDK, upgrade to Android SDK v21.

  • If you notice build errors pertaining to android:foregroundServiceType, it could be because you could be using Android compileSDK and targetSDK versions below 29. Upgrade both to v29; if you are not able to do so, add the following snippet in your application module's AndroidManifest.xml

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="<you-package>"
  xmlns:tools="http://schemas.android.com/tools">
  ....
<service
  android:name="com.zendrive.sdk.services.TripService"
  tools:remove="foregroundServiceType"/>
  ...
</manifest>

Last updated

Was this helpful?