React Native Module project implemented with the ia.de AppSDK services.
The plugin implementation is based on the native AppSDK libraries developed by the ia.de team with Kotlin and Swift.
These native libraries offer both checkout services as well as view components in order to ensure seamless integration with any client setup.
Public API Reference: https://ihreapotheken.github.io/docs/appsdk/react-native
The library is supported on both of the major mobile operating systems, with constraints noted below:
30362.1.08.12.31516.05.9For official reference, please see the NativeScript SDK documentation on using modules.
package.json fileThe library is accessed from Github NPM Package Registry.
Firstly, the location must be defined in your app's .npmrc file, located in the root of your project:
@ihreapotheken:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=YOUR_GITHUB_PAT
Make sure to replace YOUR_GITHUB_PAT with the actual value of your Github Personal Access Token.
Afterwards, the library can be installed from the command line:
npm install @ihreapotheken/ia-sdk-react-native@VERSION_NUMBER
The VERSION_NUMBER value can be referenced from the
package release page.
Methods and properties made available as public APIs implemented with the IaSdk object.
The client setup requires instantiation of this object for usage:
import { IaSdk } from 'ia-sdk-react-native';
export class MyAppClass {
iaSdk = new IaSdk();
}
You may then proceed with API usages on this object:
async initialize() {
try {
await this.iaSdk.initIaSdk(
isAndroid
? "a1f4b6e3c7d58f9032eeaa1bc02b4f44f9863d1e5c7a49f7d23e0c96b17af5cd"
: "e9f3d6a12c4b8f75d1e0a93c5b7d6e2f3c1a9b8e7f4d2c0a1b6e5d3f8c7a1b9e",
"5004",
IaSdkBase.ServerEnvironment.Staging,
);
} catch (error) {
console.error("Init failed:", error);
}
}
For further information, please see the API reference.