Skip to content
Back to skills

Add Watch App

ASecurity

Add an Apple Watch app via expo-apple-targets + react-native-watch-connectivity. Use when the user says 'Apple Watch', 'watchOS', 'companion app', 'Watch Connectivity'.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 4, 2026
developmentswiftbashreact

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 2 files and shows the line behind each finding

Scanned October 4, 2026

npx -y skills add khadinakbarlabs/expo-mobile-app-builder --skill add-watch-app --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Add Watch App?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Add Watch App
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/khadinakbarlabs-add-watch-app/badge)](https://www.skillsdirectory.com/skills/khadinakbarlabs-add-watch-app)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "add-watch-app"
description: "Add an Apple Watch app via expo-apple-targets + react-native-watch-connectivity. Use when the user says 'Apple Watch', 'watchOS', 'companion app', 'Watch Connectivity'."
---

# Add Watch App

Apple Watch companion. **Watch UI is SwiftUI only — cannot be written in JS.** Use `expo-apple-targets` to add a SwiftUI target, then `react-native-watch-connectivity` to communicate.

## When to add a Watch app
- Glanceable info (timer, streak, status)
- Quick actions (start workout, add note)
- Complications (watch face widgets)
- Don't add for content/social/long sessions — bad UX

## Install
```bash
npm install @bacons/apple-targets react-native-watch-connectivity
npm exec --no -- expo prebuild --clean
```

## app.json
```json
{
  "expo": {
    "plugins": [
      ["@bacons/apple-targets", { "targets": ["./targets/watch"] }]
    ]
  }
}
```

## Watch SwiftUI view (in `targets/watch/ContentView.swift`)
```swift
import SwiftUI

struct ContentView: View {
    @State private var streak = SharedStore.streak()
    var body: some View {
        VStack {
            Text("\(streak)").font(.system(size: 60, weight: .bold))
            Text("Day Streak").font(.caption2)
            Button("Log Today") {
                streak += 1
                SharedStore.setStreak(streak)
                WatchConnectivity.send(["streak": streak])
            }
        }
    }
}
```

## Communicate with iPhone from JS
```ts
import { sendMessage, watchEvents } from 'react-native-watch-connectivity';

await sendMessage({ streak: 7 });

watchEvents.on('message', (msg) => {
  console.log('From watch:', msg);
});
```

## Skip Watch if
- App needs heavy compute / network / large screen
- Just ship widgets + Live Activity instead — covers 80% of Watch use cases for less work

Files in this skill

  • SKILL.md1.8 KB
  • agents/openai.yaml170 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…