React Native >= 0.64
Setting up this library is a little bit trickier for IOS rathen than Android.
1. Add a Bridging Header#
Since this library uses Swift, you'll need to generate a Bridging Header from Xcode.
2. Modify AppDelegate.m#
Modify your app delegate like the following:
3. Update Podfile#
3.1. Add MercadoPagoSDK#
We'll need to configure MercadoPago SDK as a dynamic framework, in order to that we need to perform the following steps:
- Install the following plugin with
ruby gem:
- Go to your app
Podfileand add the following lines at the top of the file:
- In your app
Podfilealso add the following line in the target definition:
3.2. Disable Flipper#
Since this library requires use_framework is not compatible with Flipper:
4. Install Pods#
Install pods by running the following commands:
With those steps fully completed, we should be able to build the IOS app accordangly.