Fiesta
Publishing to npm
Once you're ready to publish to npm. Run:
npm run buildNPM
This command updates the version number of the repo and then the Travis CI would build and publish to npm.
fiesta
This is Tquila ANZ UI library page, for some of these components they are data driven from Salesforce and there are some assumptions that will considered.
Fiesta has both es6 Javascript and you can also implement Typescript.
Some important items in package are under scripts, note for building Typescript:
"test": "jest", "build": "npm run clean && npm run tsc --", "tsc": "tsc", "clean": "rimraf artifacts", "buildNPM": "npm run build && npm version patch --force && npm publish && git push"
To run Typescript: npm build
To publish to npm use: buildNPM
Tquila ANZ Map
;
This is the main component for maps, manually need to install google maps and registered a key with Google for iOS and Android.
For Android you need to add permission in the Java.
For iOS you need to add permission to plist.
NSLocationUsageDescriptionMy description about why I need this capabilityNSLocationAlwaysUsageDescriptionMy description about why I need this capabilityNSLocationWhenInUseUsageDescriptionMy description about why I need this capability
Review this article for installion: https://github.com/react-community/react-native-maps/blob/master/docs/installation.md
https://codeburst.io/react-native-google-map-with-react-native-maps-572e3d3eee14
Dependencies: React Native, react-native-maps please reviewTquila ANZ Offline = IN PROGRESS
;
Offline is for Salesforce Mobile SDK Soup and Sync
Dependencies: React Native, Salesforce
Tquila ANZ Cache = IN PROGRESS
;
Cache is slighly different to fiesta Offline, this is still handled offline rather as a read only cache after setting.
Dependencies: React Native, Typescript
Tquila ANZ Accordion
;
This is the main component that allows the render of child items. This is in early stages for version 1.x.x this is the most important structure to any application.
Dependencies: React Native, Salesforce, Fiesta
Tquila ANZ Button
;
Dependencies: React Native
Tquila ANZ Notes
;
Dependencies: React Native
Tquila ANZ Navigation
;
Currently supporting StackNavigator from 'react-navigation';
Dependencies: React Native
Tquila ANZ Copyright
;
Props { name, version }
Dependencies: React Native
Tquila ANZ Camera
;
https://github.com/wix/react-native-camera-kit
Dependencies: React Native, React Native Camera Kit
fiesta Unit Tests
Unit Tests are based off Jest, to the run all test suites please do the following:
- cd fiesta/Fiesta
- npm run test
Each test should match to each component in "fiesta" for example:
__tests__/FiestaCache.js
fiesta demo app
Can be found at: https://github.com/Tquila-ANZ/fiesta-mobile-app