用于使用 Skia 创建图形的 React Native 库。
@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
-
npx expo install @shopify/react-native-skia
If you are installing this in an existing React Native app (bare workflow), start by installing expo
in your project. Then, follow the additional instructions as mentioned by library's README under "Installation in bare React Native projects" section.
网络所需的额外设置:如果你想在网络上使用 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.