This repository has been archived by the owner on Dec 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs : update PinchZoom README (#139)
Add preview, props, and installation.
- Loading branch information
1 parent
7b53011
commit 8c40090
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,24 @@ | ||
# PinchZoom | ||
|
||
> [PinchZoom] has ability to zoom in / out images or component. | ||
#### Preview | ||
|
||
![pinchzoom](https://user-images.githubusercontent.com/50297117/136137789-b65265d6-6580-4465-9adb-f29d0ed44d46.gif) | ||
|
||
## Props | ||
|
||
| Props | Types | Required | Default | | ||
| ----------------------- | --------------------------------------------- | -------- | ------- | | ||
| style | ViewStyle | optional | - | | ||
| onScaleChanged | (_value_: _number_): void | optional | - | | ||
| onTranslateChanged | (_valueXY_: {x: _number_; y: _number_}): void | optional | - | | ||
| onRelease | void | optional | - | | ||
| allowEmpty | {x?: _boolean_; y?: _boolean_} | optional | - | | ||
| fixOverflowAfterRelease | boolean | optional | true | | ||
|
||
## Installation | ||
|
||
``` | ||
yarn add @dooboo-ui/pinch-zoom | ||
``` |