@smartface/extension-zoomable-imageview
v4.0.1
Published
ZoomableImageView component for Smartface Native Framework
Downloads
13
Readme
ZoomableImageView Extension from Smartface
An extension to ImageView component with Smartface Native Framework.
Installation
ZoomableImageView Extension can be installed via npm easily from our public npm repository. Execute the command on scripts directory:
yarn add @smartface/extension-zoomable-imageview
How to use
- Create ZoomableImageView object and add to your page layout as child view.
import ZoomableImageView from "@smartface/extension-zoomable-imageview";
let myZoomableImageView = new ZoomableImageView({
width: 250,
height: 250,
animated: true, // Gets/sets animation while zooming
});
myZoomableImageView.image = "images://smartface.png";
myZoomableImageView.minumumZoomScale = 0;
myZoomableImageView.android.mediumZoomScale = 5;
myZoomableImageView.maximumZoomScale = 10;
myZoomableImageView.zoomScale = 1;
myPage.layout.addChild(myZoomableImageView);
Android
Android uses third party to give zooming ablity credits on PhotoView
API Documentation
Full api documentation is in wiki of this repository
Need Help?
Please submit an issue on GitHub and provide information about your problem.
Support & Documentation & Useful Links
Code of Conduct
We are committed to making participation in this project a harassment-free experience for everyone, regardless of the level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality. Please read and follow our Code of Conduct.
License
This project is licensed under the terms of the MIT license. See the LICENSE file. Within the scope of this license, all modifications to the source code, regardless of the fact that it is used commercially or not, shall be committed as a contribution back to this repository.