helpers 0.8.1
Install from the command line:
Learn more about npm packages
$ npm install @platformbuilders/helpers@0.8.1
Install via package.json:
"@platformbuilders/helpers": "0.8.1"
About this version
Welcome to the Platform Builder helpers
package here you will find out all the helpers that we use on our projects
Its a place that we can share a little bit of our code base and show how we work on our projects with our helpers
Just add the library to your project and import it!
- Depend on it:
yarn add @platformbuilders/helpers
If using Native helpers:
yarn add react-native-haptic react-native-size-matters
- Import:
import { getTheme } from '@platformbuilders/helpers'
import { isIOS } from '@platformbuilders/helpers/native'
Name | Returns | Arguments |
---|---|---|
formatToBase64 |
string | (value) |
currencyParser |
string | (value, numberOfDecimalPlaces) |
parseToThousands |
string | (value) |
currencyToNumber |
string | (value) |
removeWhiteSpaces |
string | (value) |
toOnlyNumbers |
string | (value) |
formatToPhone |
string | (value) |
Name | Returns | Arguments |
---|---|---|
isIOS |
boolean | |
generateHaptic |
void | HapticFeedbackType |