Installation guide for Android
We support RN version 0.61.0 to 0.76
Package Installation
$ npm install react-native-zendrive --save or $ yarn add react-native-zendrive
Clean & build your project to pickup react-native-zendrive dependency automatically.
Troubleshooting
You can notice build errors related to
minSdkVersion, this is because the min version of android sdk supported by Zendrive is 21. React native template has min version as 16. Bump it to 21 and it should resolve the errors.You can notice build errors related to "android:foregroundServiceType" if you have compilation and target SDK versions below 29. We do recommend that you upgrade the compile and target SDK versions to 29, however if you are not able to do so, you can add the following snippet in your app 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>