@popmart-online/expo-pag-player
v1.0.3
Published
Expo native module providing a libpag-backed PAGView for React Native.
Maintainers
Readme
@popmart-online/expo-pag-player
Expo 原生模块:在 iOS/Android 上通过 libpag 渲染 .pag 动画(PAGView)。
使用前提
- 需要 Development Build / EAS Build(Expo Go 不支持自定义原生模块)。
安装
在 Expo App 工程中安装(public npm,无需私有 registry token):
npm i @popmart-online/expo-pag-player发版(维护者)
- 在 npmjs.com 创建/加入组织
@popmart-online(scoped 包首次发布需组织权限) - 本地登录:
npm login - 在
packages/expo-pag-player目录执行:
npm run publish:public说明
- 原生 View 名称:
ExpoPagPlayer - JS 侧一般通过
requireNativeViewManager("ExpoPagPlayer")使用(项目内已有封装组件NativePagPlayer)。
