Installation guide for iOS
We support RN version 0.67.x to 0.72.x
Note: XCode version must be at-least 12.0
Package Installation
$ npm install react-native-zendrive --save or $ yarn add react-native-zendrive
In ios/Podfile add a dependency for Zendrive iOS pod and add podspec path as well.
Note:
    For RN version < 0.69 podspec path is not needed.
    Cocoapods versions must be at-least 1.10.1target '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.0', :modular_headers => true
  pod 'RNZendrive', :path => '../node_modules/react-native-zendrive/ios/RNZendrive.podspec', :modular_headers => trueon iOS running pod installation should generate a workspace with react-native-zendrive pod installed.
$ cd ios & pod install
Note: We can use the ZD RN Library along with flipper by enabling modular headers. Other wise we need to enable
use_frameworks!which in turn will not work with flipper.
Troubleshooting
- You can notice build errors related to swift that the binaries are not linked. In this case you need to add a bridging header. To do so follow these simple steps - Create a new swift file in your project in xcode. The file can be empty.
- Xcode will prompt you to create a bridging header, accept it.
 
- For RN versions < 0.67, we may need to upgrade the "Library Search Path" to the following - config.build_settings['LIBRARY_SEARCH_PATHS'] = ['$(SDKROOT)/usr/lib/swift', '$(inherited)']