expo-webid-video v1.0.2
Expo WebID Video
The WebID Striver Plugin is a React Native module that facilitates seamless integration with the WebID identification system. This plugin wraps the native Android and iOS SDKs, enabling React Native applications to securely utilize WebID’s reliable user identification platform.
Add the Package to Your NPM Dependencies
npm install expo-webid-video
Configure for Android
Re-generate the native project directories from scratch:
npx expo prebuild --clean
Modify android/build.gradle
to include the required Maven repository:
allprojects {
repositories {
maven {
url 'https://api.webid-solutions.de/releases/android/maven/repository/internal'
}
}
}
Run the app on Android:
npx expo run:android
Configure for iOS
Run npx pod-install
after installing the npm package:
npx pod-install
Run the app on iOS:
npx expo run:ios
Example
import ExpoWebidVideo from "expo-webid-video";
<Group name="WebId Video Indent Configure">
<Button
title="Start Video Indent"
onPress={async () => {
try {
const result = await ExpoWebidVideo.startVideoIndentPlugin(
"environment link", // env: string,
"sha256/your-sha-key", // pinningShaKeys: string,
"your-api-key", //apiKey
"username", //username
"actionId", //actionId
);
console.log("result : ", result);
Alert.alert("Success", result);
} catch (error) {
console.error("Error:", error);
Alert.alert("Error", "Failed to call native module");
}
}}
/>
</Group>
Argument Reference
Argument | Description |
---|---|
environment | The WebID system URL (e.g., Production or Test URL). |
username | WebID customer number (6-digit string). |
apiKey | API key for WebID Mobile App SDK. |
actionId | Action ID for initiating the identification process. |
shaKeys | Certificate pinning SHA keys for security. |
Additional Information
This package is a third-party React Native wrapper for WebID’s identification SDK. For official resources, visit WebID Solutions.
API Documentation
Installation in Managed Expo Projects
For managed Expo projects, please follow the installation instructions in the API documentation for the latest stable release. If you follow the link and find no available documentation, then this library is not yet usable within managed projects. It may be included in an upcoming Expo SDK release.
Installation in Bare React Native Projects
Ensure that you have installed and configured the expo
package before continuing.
Contributors
Contributing
Contributions are very welcome! Please refer to the guidelines described in the contributing guide.
License
📄 This project is licensed under the MIT License. You are free to use, modify, and distribute the code as per the terms of the license.