privcloud-mobile-components
v1.0.2
Published
Privcloud mobile components snippet
Maintainers
Readme
privcloud-mobile-components
A simple and customizable React Native components for privcloud api service.
- Record List component is to display all records associated to container.
- Record Details component is to CRUD record details.
Installation
If using yarn:
yarn add privcloud-mobile-componentsIf using npm:
npm install privcloud-mobile-componentsDocumentation
Record List component
| Name | Description | Required | Default | Type | |-------------------|-------------------------------------------------|-------------|----------|----------| | token | Privcloud service API token | Yes | | String | | containerGuid | Associated container GUID to get all records | Yes | | String | | recordTypeId | Record Type ID to filter records | Yes | | Number | | options | Options to customize a component | No | { title: 'Record List', elevation: 3, updatable: false, displayTiming: true } | Object |
Record Details component
| Name | Description | Required | Default | Type | |-------------------|-------------------------------------------------|-------------|----------|----------| | token | Privcloud service API token | Yes | | String | | guid | Record GUID to get details. If this is empty, you need to provide workspaceId and containerGuid to create a new record | No | | String | | workspaceId | Workspace ID to create a new record | No | | Number | | containerGuid | Container GUID to create a new record | No | | String | | transformation | Transformation type to view record details. decrypt, encrypt, anonymize, redact | No | 'decrypt' | String | | options | Options to customize a component | No | { title: 'Record Details', elevation: 3, displayTiming: true } | Object |
License
MIT
