Almost every mobile application needs the option to capture, save and share images. The NativeScript camera plugin was designed for the first two parts of the job (taking a picture and optionally saving to device storage).
Navigate to project folder and run NativeScript-CLI command
tns plugin add nativescript-camera
Plugin could be also added as a standard npm dependency running command
npm install nativescript-camera --save
--saveflag will add the plugin as dependency in your package.json file
For detailed information about plugin's usage, check the plugin's README in GitHub.