Reference version

This is documentation for the next SDK version. For up-to-date documentation, see the latest version (SDK 55).

@shopify/react-native-skia

用 Skia 创建图形的 React Native 库。

Android
iOS
tvOS
Web
Included in Expo Go

For the complete documentation index, see llms.txt. Use this Use this file to discover all available pages.

@shopify/react-native-skia 将 Skia 图形库带入 React Native。Skia 为 Google Chrome 和 Chrome OS、Android、Flutter、Mozilla Firefox 和 Firefox OS,以及许多其他产品提供图形引擎。

安装

Terminal
npx expo install @shopify/react-native-skia

If you are installing this in an existing React Native app, make sure to install expo in your project. Then, follow the installation instructions provided in the library's README or documentation.

Web

如果你想在 web 上使用 Skia,你需要按照 web 安装说明 加载 CanvasKit。

了解更多

访问官方文档

获取有关 API 及其用法的完整信息。