1.0.0 • Published 4 years ago
@dapi-co/connect-react-native v1.0.0
DapiConnect-ReactNative
Financial APIs to connect users' bank accounts
Getting Started
iOS
Requirements
- Xcode 10.3
- react-native >= 0.60.0
- CocoaPods >= 1.9.3
Getting Started
Let's create a simple app that integrates DapiConnect and uses the dapiconnect-reactnative
module.
- Make sure
react-native-cli
is installed:yarn global add react-native-cli
- Create the app with
react-native init YourApp
- Step into your newly created app folder:
cd YourApp
- Install
dapiconnect-reactnative
from GitHub:yarn add github:dapi-co/DapiConnect-ReactNative
- Install all the dependencies for the project:
yarn install
. (Because of a bug you may need to cleanyarn
's cache withyarn cache clean
before.) - Open
ios/Podile
in a text editor:vim ios/Podfile
, update the platform to iOS 10.3:
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
- platform :ios, '10.0'
+ platform :ios, '10.3'
target 'example' do
config = use_native_modules!
use_react_native!(:path => config["reactNativePath"])
target 'exampleTests' do
inherit! :complete
# Pods for testing
end
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable these next few lines.
use_flipper!
post_install do |installer|
flipper_post_install(installer)
end
end
npx pod-install
orcd ios
and thenpod install
.
1.0.0
4 years ago