Something went wrong. Try again.
cee sky
Something went wrong. Try again.
15 files
README.md
Share sheet #
The native share sheet for posts, profiles, feeds and lists, behind
share_destinations:enable. It shows recent chats, the installed apps, and
actions like Copy link and the system share sheet.
ShareSheet.tsxis the sheet.ShareSheetopens with a dialog control, from a button or another menu.ShareSheetOuterrenders inside an existingMenu.Root, which is how a post's share button uses it. CheckuseShareSheetEnabledbefore rendering either: the sheet is native only.types.tshasShareSubject, which describes what's shared: its link, its prefilled title, who it belongs to for metrics, and whether to warn that people who aren't signed in can't see it.- Sending to a chat attaches a post (
chatEmbed). Anything else goes in the message text as a link, since chats can only attach posts so far (APP-3898).
Share platforms #
The apps the sheet can share to, like Messages, WhatsApp and Telegram. The row only shows apps that are installed.
catalog.tslists every app: its name, how to detect it, and how to open it with the link. Array order is the default display order.detect.tsreturns which catalog apps are installed. The result is never stored or logged.share.tsopens an app with the link. Most apps take a link that fills it in. For apps with no such link, Android sends it to the app's own share screen (directShare), and iOS copies the link and opens the app so the person pastes it (copyAndOpen).
What a change needs #
app.config.js loads catalog.ts to declare the iOS URL schemes
(LSApplicationQueriesSchemes) and Android packages (manifest <queries>)
we're allowed to check. The OS reports anything undeclared as not installed.
| Change | Ships via |
|---|---|
Add an app, or change its iOS scheme or Android packages/scheme |
Native release |
| Change a share link, label or order | OTA update |
| Add an icon | OTA update via assets/icons/tmp/, then into the font before the next native release (see scripts/icons/README.md) |
fingerprint.config.js ignores catalog.ts itself, so only edits that change
the resolved native config change the fingerprint.
iOS allows at most 50 query schemes. catalog.test.ts checks the limit.