Skip to content

dpolyakov/react-native-cloudpayments-config-plugin

Repository files navigation

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"
                    }
                }
            ]
        ]
    }
}