首页指南参考教程

斯基亚

GitHub

npm

用于使用 Skia 创建图形的 React Native 库。

Android
iOS
Web

该库在 Expo SDK 参考中列出,因为它包含在 Expo 中。你可以将你选择的任何库与 开发构建 一起使用。

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

¥@shopify/react-native-skia brings the Skia Graphics Library to React Native. Skia serves as the graphics engine for Google Chrome and Chrome OS, Android, Flutter, Mozilla Firefox and Firefox OS, and many other products.

安装

¥Installation

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

If you're installing this in a bare React Native app, you should also follow these additional installation instructions.

网络所需的额外设置:如果你想在网络上使用 Skia,你需要按照 网络安装说明 加载 CanvasKit。

¥Additional setup required for web: If you want to use Skia on web, you will need to follow web installation instructions to load CanvasKit.

用法

¥Usage

有关使用说明,请参阅 @shopify/react-native-skia 文档

¥See @shopify/react-native-skia documentation for usage instructions.

Expo 中文网 - 粤ICP备13048890号