1.0.0 • Published 10 months ago

react-native-cloudpayments-config-plugin v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

react-native-cloudpayments-config-plugin

Plugin for automatic setup react-native-cloudpayments-sdk to your expo application.

Installation

Add the package to your project

npx expo install react-native-cloudpayments-config-plugin react-native-cloudpayments-sdk

After installing this npm package, add the config plugin to the plugins array of your app.json or app.config.js:

{
  "expo": {
    "plugins": ["react-native-cloudpayments-config-plugin"]
  }
}

API

Example

{
    "expo": {
        ...,
        "plugins": [
            ...,
            [
                "react-native-cloudpayments-config-plugin",
                {
                    "yandexClientId": "MY_COOL_TOKEN",
                    "ios": {
                        "sdk": "1.1.9"
                    },
                    "android": {
                        "sdk": "1.2.7"
                    }
                }
            ]
        ]
    }
}