Skip to content

Commit

Permalink
Merge pull request #2705 from gluestack/hot/fix
Browse files Browse the repository at this point in the history
fix: image viewer docs
  • Loading branch information
akash3gtm authored Jan 13, 2025
2 parents 6a9e0e5 + 9dfaf51 commit 155b289
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,13 @@ The `ImageViewerBackdrop` component serves as the background layer of the `Image

The `ImageViewerImage` component is used to display individual images within the `ImageViewerContent`. It supports all the properties of React Native's [Image](https://reactnative.dev/docs/image) component, making it easy to customize the appearance and behavior of the images.

### Example
### Examples

The Example section offers visual previews of the component, letting you quickly identify the best fit for your needs. Just copy the code and use it in your project.
The Examples section offers visual previews of the component, letting you quickly identify the best fit for your needs. Just copy the code and use it in your project.

#### Basic ImageViewer

Basic ImageViewer component is created using ImageViewer component from gluestack-ui. It extends all the props supported by [React Native Image](https://reactnative.dev/docs/image) component.

```jsx
import { ImageViewer, ImageViewerBackdrop, ImageViewerContent, ImageViewerCloseButton, ImageViewerImage } from '@/components/ui/image-viewer';
Expand Down

0 comments on commit 155b289

Please sign in to comment.