@shopify/react-native-skia
用于使用 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, make sure to install expo
in your project. Then, follow the installation instructions provided in the library's README or documentation.
Web
如果你想在网络上使用 Skia,你需要按照 网络安装说明 加载 CanvasKit。
¥If you want to use Skia on web, you will need to follow web installation instructions to load CanvasKit.
了解更多
¥Learn more
获取有关 API 及其用法的完整信息。