@blipit/react-native 0.2.1 → 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 CHANGED
@@ -1,3 +1,7 @@
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
+
1
5
  ## 0.2.1
2
6
 
3
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.
package/README.md CHANGED
@@ -37,6 +37,24 @@ 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.