1.0.0 • Published 4 years ago

@dapi-co/connect-react-native v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

DapiConnect-ReactNative

npm version npm MIT Platform - Android and iOS Gitter chat

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.

  1. Make sure react-native-cli is installed: yarn global add react-native-cli
  2. Create the app with react-native init YourApp
  3. Step into your newly created app folder: cd YourApp
  4. Install dapiconnect-reactnative from GitHub: yarn add github:dapi-co/DapiConnect-ReactNative
  5. Install all the dependencies for the project: yarn install. (Because of a bug you may need to clean yarn's cache with yarn cache clean before.)
  6. 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
  1. npx pod-install or cd ios and then pod install.