reactnative-client
  • @dormakaba/digital-reactnative-client
  • Getting started
  • Changelog
  • Concerns
    • App State
    • Global / Local Snacks
    • Forms
    • Navigation
    • i18n
    • rest api
  • Utils
    • formatters
    • EventEmitter
    • Logger
    • settings
    • validate
    • misc
Powered by GitBook
On this page
  1. Utils

formatters

Currently there are just a few common formatters we use across projects. Feel free to suggest new formatters!

import { formatCid, formatCidForBackend } from '@dormakaba/digital-reactnative-client';

console.log(formatCid('12345')); // -> "0000 0000 0001 2345"
console.log(formatCidForBackend('0000 0000 0001 2345'); // -> "12345"
Previousrest apiNextEventEmitter

Last updated 6 years ago