Skip to content

Commit

Permalink
fix typo (Shopify#2830)
Browse files Browse the repository at this point in the history
  • Loading branch information
wcandillon authored Dec 22, 2024
1 parent 7420bee commit 5920b5d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/docs/docs/animations/textures.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ sidebar_label: Textures
slug: /animations/textures
---

In React Native Skia, Skia resources are shared across threads.
We can use Reanimated to create textures on the UI thread, thus ensuring that we can display them on the onscreen canvas without needing to perform unnecessary copies.
In React Native Skia, we can use Reanimated to create textures on the UI thread directly.

## `useTexture`

Expand Down Expand Up @@ -124,4 +123,4 @@ const Demo = () => {

This example demonstrates how to create a texture, draw a cyan color onto it, and then display it using the `Image` component from `@shopify/react-native-skia`. The `runOnUI` function ensures that the texture creation and drawing operations are performed on the UI thread for optimal performance.

Make sure that you have installed the necessary packages and configured your project to use Reanimated 2 and `@shopify/react-native-skia` before running this code.
Make sure that you have installed the necessary packages and configured your project to use Reanimated 2 and `@shopify/react-native-skia` before running this code.

0 comments on commit 5920b5d

Please sign in to comment.