@mushi-mushi/react-native 0.23.0 → 0.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/index.cjs +904 -503
- package/dist/index.d.cts +115 -7
- package/dist/index.d.ts +115 -7
- package/dist/index.js +726 -317
- package/package.json +4 -10
package/README.md
CHANGED
|
@@ -51,7 +51,7 @@ Control how users open the report form:
|
|
|
51
51
|
| `'button'` (default) | Floating action button — safe on all Hermes builds |
|
|
52
52
|
| `'shake'` | Shake-to-report listener (requires optional `expo-sensors` peer) |
|
|
53
53
|
| `'both'` | Floating button + shake |
|
|
54
|
-
| `'manual'` / `'hidden'`
|
|
54
|
+
| `'manual'` / `'hidden'` | No auto UI — call `open()` programmatically |
|
|
55
55
|
| `'attach'` | Hides default UI; host renders its own button and calls `attachTo()` |
|
|
56
56
|
|
|
57
57
|
> **Note on shake + Hermes:** `expo-sensors` is loaded lazily via `require()` so apps that ship `trigger: 'button'` never pay the shake-sensor cost. Both triggers are fully Hermes-compatible as of v0.11.0.
|
|
@@ -79,7 +79,7 @@ import { useMushi, useMushiReport, useMushiWidget } from '@mushi-mushi/react-nat
|
|
|
79
79
|
|
|
80
80
|
const { submitReport } = useMushiReport()
|
|
81
81
|
const { open, close } = useMushiWidget()
|
|
82
|
-
const mushi = useMushi() // full SDK instance:
|
|
82
|
+
const mushi = useMushi() // full SDK instance: open(), close(), attachTo(), identify(), submitReport()
|
|
83
83
|
```
|
|
84
84
|
|
|
85
85
|
## Headless / bring your own button
|
|
@@ -156,7 +156,7 @@ npx expo install react-native-view-shot # v4+ on Expo SDK 55; v5+ for Fabric /
|
|
|
156
156
|
|
|
157
157
|
> **Masking sensitive screens.** `captureScreen()` grabs whatever is on screen. The preview + Remove control is the reporter's consent gate — finance apps can keep screenshots on with a custom caption instead of disabling capture entirely. For screens that must never be photographed, set `capture: { screenshot: false }` while they're focused, or use `expo-screen-capture` to mark the view secure. Full doc: [`docs/SDK_SCREENSHOT_PREVIEW.md`](../../docs/SDK_SCREENSHOT_PREVIEW.md).
|
|
158
158
|
|
|
159
|
-
> **Metro / Hermes hosts.**
|
|
159
|
+
> **Metro / Hermes hosts.** Optional peers (`react-native-view-shot`, `@react-native-community/netinfo`, `expo-sensors`) load with a literal `require()` inside `try/catch`, which Metro treats as optional. To skip loading entirely, pass them in: `<MushiProvider netInfo={NetInfo} viewShot={ViewShot} expoSensors={ExpoSensors}>`. Versions 0.21–0.23 shipped an esbuild `__require()` shim that crashed under Metro and needed a postinstall patch; drop that patch when you upgrade.
|
|
160
160
|
|
|
161
161
|
## Identifying the reporter
|
|
162
162
|
|
|
@@ -199,4 +199,4 @@ MIT
|
|
|
199
199
|
<!-- mushi-readme-stats-footer -->
|
|
200
200
|
---
|
|
201
201
|
|
|
202
|
-
<sub>Monorepo scale (July 2026):
|
|
202
|
+
<sub>Monorepo scale (July 2026): 65 edge functions · 469 SQL migrations · 13 outbound plugins · 11 inbound adapters · 19 pipeline agents. Canonical counts: <a href="https://github.com/kensaurus/mushi-mushi/blob/master/docs/stats.md">docs/stats.md</a> · <code>pnpm docs-stats</code></sub>
|