expo-components
A repository for all our expo components
Usage
This package requires quite a lot of custom code to run correctly as it is deeply linked with our app framework.
import { ...Components } from 'wp-expo-components';
Available Components are:
- Output Components
- WpText
- WpAccordionItem
- WpProgress
- Input Components
- WpInputButton
- WpNavButton
- WpDeleteIcon
- WpInputText
- WpInputDate
- WpInputSwitch
- WpInputSelect
- Helpers Objects
- DeviceInfo
Requirements
global.styles = {} must be defined but will be filled in in the future. Also some components do use global.app functions. Be aware of that as well.
At the moment this npm packge is used by the brandleaders and allcampus app. When Updating any of them make sure to keep the version numbers in sync with each other and test both apps before rolling out the update to npm.
- https://github.com/webprojaggt-gmbh/brandleaders_app
- https://github.com/webprojaggt-gmbh/allcampus-mobile
The modules in this package are designed to work with our app boilerplate code and require several global variables to be defined. This should be reduced in the future by providing default values if the globals are not defined.
We will work on removing dependencies in the future.
.npmrc
this Repo requires a fontawesome pro licence
Make sure to add this in your .npmrc file
//registry.npmjs.org/:_authToken=npm_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
@fortawesome:registry=https://npm.fontawesome.com/
//npm.fontawesome.com/:_authToken=00000000-0000-0000-0000-000000000000
Updating
When publishing to npm make sure you are logged in as user webprojaggt
Use npm login
then run npm publish
Patch
npm install
yarn standard-version --release-as patch
npm publish
Minor
npm install
yarn standard-version --release-as minor
npm publish
Major
npm install
yarn standard-version --release-as major
npm publish