@blipit/react-native 0.2.0 → 0.3.0
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/CHANGELOG.md +9 -0
- package/README.md +22 -0
- package/dist/index.cjs +952 -9
- package/dist/index.d.cts +12 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.js +963 -1
- package/package.json +12 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 0.3.0
|
|
2
|
+
|
|
3
|
+
- `<BlipitReporter showButton>` around your app and `showReport()` from your own menu open the bug reporter: Take a screenshot or Skip, then a full-screen editor with the tools above and below the image, pinch, two-finger pan and double-tap zoom up to 5x, pen, box and arrow marks, then a title, what happened and an optional email, and Send. Screenshots need `react-native-view-shot` (optional peer dependency); without it the report is sent as text.
|
|
4
|
+
|
|
5
|
+
## 0.2.1
|
|
6
|
+
|
|
7
|
+
- Events carry the `npm:@blipit/react-native` package and version, so the dashboard can show when this app runs an old Blipit SDK. A `beforeSend` you pass still runs after it. `VERSION` is exported.
|
|
8
|
+
- No development console notice: events leave through the native transport, which does not expose response headers, and swapping it for the fetch transport in development would change how events are queued offline. The dashboard banner covers updates instead.
|
|
9
|
+
|
|
1
10
|
## 0.2.0
|
|
2
11
|
|
|
3
12
|
- `init` with an empty key or project id logs a warning, returns false and leaves Blipit off instead of throwing. It returns true when started.
|
package/README.md
CHANGED
|
@@ -37,8 +37,30 @@ Blipit.captureSecurity("login_failed", "ana@example.com", { ip: "10.0.0.1" });
|
|
|
37
37
|
await Blipit.flush();
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
+
## Bug reports
|
|
41
|
+
|
|
42
|
+
Install `react-native-view-shot` for screenshots, wrap your app in `BlipitReporter` (`showButton` adds the floating Report a bug button) and call `showReport()` from your own menu:
|
|
43
|
+
|
|
44
|
+
```tsx
|
|
45
|
+
npm install react-native-view-shot
|
|
46
|
+
|
|
47
|
+
export default Blipit.wrap(() => (
|
|
48
|
+
<Blipit.BlipitReporter showButton>
|
|
49
|
+
<App />
|
|
50
|
+
</Blipit.BlipitReporter>
|
|
51
|
+
));
|
|
52
|
+
|
|
53
|
+
Blipit.showReport();
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
The reporter asks first: Take a screenshot or Skip. The screenshot opens full screen with the tools above and below it; pinch or double-tap to zoom, mark the problem, then add a title and what happened and send. Without `react-native-view-shot` the report is sent as text. Reports arrive under Bug reports at app.blipit.io.
|
|
57
|
+
|
|
40
58
|
## Performance
|
|
41
59
|
|
|
42
60
|
Pass `tracesSampleRate: 0.2` to `init` and screen loads and requests show up on the Performance page.
|
|
43
61
|
|
|
44
62
|
Docs: https://docs.blipit.io/mobile
|
|
63
|
+
|
|
64
|
+
## Updates
|
|
65
|
+
|
|
66
|
+
The project page on app.blipit.io shows a banner when this app sends events from an older version, with the command. Update with `npm install @blipit/react-native@latest`. Details: https://docs.blipit.io/updates
|