@memshare/player
v0.1.3
Published
Expo React Native UI components for Player (mobile + TV)
Maintainers
Readme
@memshare/player
Expo / React Native UI 组件库。
Install
pnpm add @memshare/playerPeer:react、react-native(expo 可选)。
Usage
import { Button } from "@memshare/player";
export function Example() {
return <Button title="Continue" onPress={() => {}} />;
}Monorepo 开发
pnpm --filter @memshare/player typecheck
pnpm --filter @memshare/player buildApp 已通过 workspace:* 引用本包;Metro 走 react-native 字段读 src/,改完可热更新。
发布到 npm
一次性配置
- 在 npm 创建组织/用户,确保有权发布
@player/*(若 scope 不可用,改package.json的name) - 生成 Automation token:npm → Access Tokens → Granular Access Token / Classic
Automation - GitHub 仓库 → Settings → Secrets and variables → Actions → New repository secret
- Name:
NPM_TOKEN - Value: 上面的 token 4.(可选)把
package.json里的repository/homepage补上真实 GitHub 地址
- Name:
发版方式
推荐:打 Release
- 合并代码到
main - 创建 GitHub Release,tag 用其一:
ui-v0.1.1@memshare/[email protected]v0.1.1
Publish UIworkflow 会按 tag 写版本、build、发布
或:手动触发
Actions → Publish UI → Run workflow,可填 version 与 npm tag(默认 latest)。
