Installing React Native-Zendrive SDK for iOS
The following instructions will help you install RN-Zendrive SDK for Android applications.
Package Installation
Run the following script to install the RN-Zendrive SDK for
$ npm install react-native-zendrive --save
or $ yarn add react-native-zendrive
In
ios/Podfile
add a dependency for Zendrive iOSpod
and add the path topodspec
as well, as show in the following code snippet:
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
While installing iOS
pod
, use the following command to generate a workspace withreact-native-zendrive
pod installed:
$ cd ios & pod install
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:.
Create a new Swift file in your project in
Xcode
. The file can be empty.When Xcode prompts you to create a bridging header, create the header.
Last updated
Was this helpful?