Skip to content

Commit

Permalink
docs: fix typos in skia guide
Browse files Browse the repository at this point in the history
  • Loading branch information
Glazzes committed Aug 22, 2024
1 parent cf42afa commit f4c8b04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/docs/guides/skia.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const useResumableValues = (): ResumableTransformationValues => {
];
}, [scale, translateY, translateX]);

const onUpdate = (updateState: CommonZoomState) => {
const onUpdate = (updateState: ResumableZoomState) => {
'worklet';
translateX.value = updateState.translateX;
translateY.value = updateState.translateY;
Expand Down Expand Up @@ -194,7 +194,7 @@ Let's see what we can take from this example
- The overlying zoom component must be the same size as the canvas.
- You can assign a color to the transparent view and lower the opacity if you are having trouble centering the
zoom component with your Skia component.
- Skia Images pixelate at a faster rate than RN image component, therefore setting maxscale to the image
resolution is a recommended practice.
- Skia Images pixelate at a faster rate than RN image component, therefore setting ResumableZoom's maxscale
to the image resolution is a recommended practice.

And that's pretty much it, thanks for reading!

0 comments on commit f4c8b04

Please sign in to comment.