Skip to content

Commit

Permalink
Fix documentation typos (#2178)
Browse files Browse the repository at this point in the history
  • Loading branch information
wcandillon authored Jan 29, 2024
1 parent 7584051 commit e9afcc8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/docs/shapes/atlas.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The RSXform object used by the altas API is the compression of the following mat
```tsx twoslash
import {Skia} from "@shopify/react-native-skia";

// 1. Identify (doesn't do anything)
// 1. Identity (doesn't do anything)
let rsxForm = Skia.RSXform(1, 0, 0, 0);

// 2. Scale by 2 and translate by (50, 100)
Expand Down Expand Up @@ -99,7 +99,7 @@ export const Demo = () => {
## Animations

The Atlas component should usually be used with Reanimated.
First, the [useTextueValue](/docs/animations/textures#usetexturevalue) hook will enable you to create a texture on the UI thread directly without needing to make any copies.
First, the [useTextureValue](/docs/animations/textures#usetexturevalue) hook will enable you to create a texture on the UI thread directly without needing to make any copies.
Secondly, we provide you with hooks such as [`useRectBuffer`](/docs/animations/hooks#userectbuffer) and [`useRSXformBuffer`](/docs/animations/hooks#usersxformbuffer) to efficiently animates on the sprites and transformations.

The example below is identical to the one above but the position is an animation value bound to a gesture.
Expand Down Expand Up @@ -151,7 +151,7 @@ export const Demo = () => {

return (
<GestureDetector gesture={gesture}>
<Canvas style={{ flex: 1 }} mode="continuous">
<Canvas style={{ flex: 1 }}>
<Atlas image={texture} sprites={sprites} transforms={transforms} />
</Canvas>
</GestureDetector>
Expand Down
2 changes: 1 addition & 1 deletion example/src/Examples/Performance/Atlas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const PerformanceDrawingTest = () => {
</View>
<View style={{ flex: 1 }}>
<GestureDetector gesture={gesture}>
<Canvas style={styles.container} mode="continuous">
<Canvas style={styles.container}>
<Atlas image={texture} sprites={sprites} transforms={transforms} />
</Canvas>
</GestureDetector>
Expand Down

0 comments on commit e9afcc8

Please sign in to comment.