Company
Date Published
Author
Mike Hartington
Word count
1159
Language
English
Hacker News points
None

Summary

Chris Griffith, a UI/UX engineer and author of the Ionic Native Mocks library, discusses the integration of Cordova plugins into Ionic applications and the challenges of testing them without real devices. Ionic Native is a curated collection of TypeScript interfaces for 160 Cordova plugins, providing easier access to native device features for Ionic developers. Griffith shares his experience of creating a mock provider for the barcode scanner plugin to facilitate local development without needing to constantly test on devices. This led to the development of Ionic Native Mocks, a library that allows developers to simulate plugin interactions during the development process, thus reducing the build and test cycle's friction. Developers can customize these mocks to return specific data, enhancing their utility in app development. The post also outlines the steps to implement these mocks and emphasizes their open-source nature, encouraging feedback for improvements.