Getting started

This is the documentation for the react-native components used by dormakaba digital.

All the components are created in a pure fashion and are unaware of state management, ...

The repository can be found here: https://github.com/dormakaba-digital/digital-reactnative-visual/blob/master/README.md

Installation

The module is provided as an npm module:

npm install @dormakaba/digital-reactnative-visual --save

Install and link the peer dependencies

# install dependencies
npm i react-native-vector-icons --save
npm i react-native-camera --save
npm i react-native-image-crop-picker --save
npm i react-native-svg --save

# link
node node_modules/react-native/local-cli/cli.js link

Copy the fonts and link them

copy https://github.com/dormakaba-digital/digital-reactnative-visual/tree/master/assets to your project `/assets`

# copy assets first and add assets to package.json
"rnpm": {
  "assets": [
    "./assets/fonts/"
  ]
},

# link
node node_modules/react-native/local-cli/cli.js link

Make sure you embed needed binaries for the image-crop-picker https://github.com/ivpusic/react-native-image-crop-picker#step-2-1

Using the components

All components and utils are provided as named exports

import { Textfield, colors } from '@dormakaba/digital-reactnative-visual'

Last updated