0.0.2 • Published 3 years ago
icp-helpdesk-client-mobile v0.0.2
icp-helpdesk-client-mobile
Library that contains all the connections with the CMS for mobile ICP
Installation
yarn add icp-helpdesk-client-mobile
Depdendencies
The following dependencies must be included in the project in order to use this library
yarn add axios
yarn add react-native-ultimate-config
Usage
import { getCategoyById } from 'icp-helpdesk-client-mobile'
// ...
const result = await getCategoyById(70000000635)
Scripts
The package.json
file contains various scripts for common tasks:
yarn bootstrap
: setup project by installing all dependencies and pods.yarn typescript
: type-check files with TypeScript.yarn lint
: lint files with ESLint.yarn test
: run unit tests with Jest.yarn testCoverage
: run unit tests with Jest and generate coverage report.yarn prepare
: Build library.yarn example start
: start the Metro server for the example app.yarn example android
: run the example app on Android.yarn example ios
: run the example app on iOS.