-
Notifications
You must be signed in to change notification settings - Fork 85
Buildfire Image Preview Component
o5faruk edited this page May 2, 2021
·
2 revisions
This sdk documentation is deprecated and will not be updated. Check out our new docs at https://sdk.buildfire.com/docs/image-preview/
The fullscreen image preview API allows a developer to instantiate a fullscreen image carousel in app. This is to give a better viewing experience to the end user.
-
images
- Array
- Image urls to display in full screen image carousel
-
index
- Number, optional
- Index of image to start carousel from
- Defaults to 0
- Callback function that gets called when carousel is closed
const callback = () => {
console.log("Image Previewer Closed");
}
const options = {
images: ['https://placekitten.com/408/287']
};
buildfire.imagePreviewer.show(options, callback)