Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bithyve/libportal-react-native
React native package for TwentyTwo portal integration
https://github.com/bithyve/libportal-react-native
Last synced: 12 days ago
JSON representation
React native package for TwentyTwo portal integration
- Host: GitHub
- URL: https://github.com/bithyve/libportal-react-native
- Owner: bithyve
- License: mit
- Created: 2024-11-04T13:24:24.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-06T08:16:43.000Z (about 2 months ago)
- Last Synced: 2024-11-11T23:03:49.866Z (about 2 months ago)
- Language: Swift
- Size: 5.03 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# libportal-react-native
`libportal-react-native` is a React Native library developed to integrate [TwentyTwo Portal](https://github.com/TwentyTwoHW/portal-software/tree/master) functionality into mobile applications for React Native environments.
## Installation
To add `libportal-react-native` to your project, follow these steps:
### Step 1: Install via `package.json`
Add `libportal-react-native` as a dependency in your `package.json`:
```json
"dependencies": {
"libportal-react-native": "git+https://github.com/bithyve/libportal-react-native.git"
}
```### Step 2: Then run
```
npm install
```
or```
yarn install
```### Step 3: Ensure your project meets the following iOS requirements:
- Deployment target of at least iOS 13.0.
- CocoaPods installed for iOS dependencies.Run the following command to install the iOS dependencies:
```
cd ios
pod install
```
## Usage
```js
import {
PortalSdk,
type CardStatus,
} from 'libportal-react-native';const sdk = new PortalSdk(true);
// ...
export const getStatus = async (): Promise => {
return sdk.getStatus();
};```
---