Installing React Native-Zendrive SDK for iOS

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

Notes:

  • We support React Native v0.61.0 to v0.76.0

  • XCodeversion must be atleast 12.0

Package Installation

  1. Run the following script to install the RN-Zendrive SDK for

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

  1. In ios/Podfile add a dependency for Zendrive iOS pod and add the path to podspecas well, as show in the following code snippet:

For RN version < 0.69, the podspec path is not needed. Cocoapods versions must be atleast 1.10.1

target 'xyz' do
    # your pods
    ......
    # Add zendrive ios pod dependency
    # note that version should be minimum 6.0.0
    pod 'ZendriveSDK', :git => 'https://bitbucket.org/zendrive-root/zendrive_cocoapod.git', :tag => '10.0.4', :modular_headers => true
    pod 'ZendriveSDKSwift', :git => 'https://bitbucket.org/zendrive-root/zendrive_cocoapod.git', :tag => '10.0.4', :modular_headers => true
    pod 'RNZendrive', :path => '../node_modules/react-native-zendrive/ios/RNZendrive.podspec', :modular_headers => true
  1. While installing iOS pod, use the following command to generate a workspace with react-native-zendrive pod installed:

$ cd ios & pod install

You can use the Zendrive RN Library along with flipper by enabling modular headers.

Troubleshooting

If you notice build errors related to Swift, it indicates that the binaries are not linked. In this case you need to add a bridging header, as instructed below:.

  1. Create a new Swift file in your project in Xcode. The file can be empty.

  2. When Xcode prompts you to create a bridging header, create the header.

Last updated

Was this helpful?