yaver-feedback-react-native 0.7.17 → 0.8.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # yaver-feedback-react-native
2
2
 
3
- Visual feedback SDK for Yaver. Lets testers and developers shake their phone (or tap a floating button) to capture screenshots, record voice notes, and send bug reports directly to a Yaver agent running on a dev machine. Built for vibe coding workflows where feedback needs to flow fast.
3
+ Visual feedback SDK for Yaver. Lets testers and developers shake their phone and then keep a small quick-access icon on screen for hot reload, vibing, screenshot or file upload, and screen recording uploads straight to a Yaver agent running on a dev machine.
4
4
 
5
5
  ## Installation
6
6
 
@@ -32,8 +32,8 @@ npm install @react-native-async-storage/async-storage
32
32
  # Screenshots
33
33
  npm install react-native-view-shot
34
34
 
35
- # Voice notes
36
- npm install react-native-audio-recorder-player
35
+ # Optional file upload
36
+ npx expo install expo-document-picker
37
37
  ```
38
38
 
39
39
  `expo-apple-authentication` is optional — if it's missing, "Continue with Apple" falls through to in-app browser OAuth on Android. iOS hosts that want true native Apple Sign-In must also enable the **Sign in with Apple** capability in Xcode.
@@ -85,7 +85,41 @@ function App() {
85
85
  }
86
86
  ```
87
87
 
88
- Shake your phone to open the feedback modal. Take screenshots, record voice notes, and send everything to your Yaver agent in one tap LAN-direct when available, Convex/relay-routed when you're on cell data.
88
+ Shake your phone to open the feedback modal. On mobile the quick-access icon stays hidden until that first shake, then remains tappable for the rest of the session unless the user hides it. From there the sheet exposes four core actions: hot reload, vibing, screenshot or file upload, and screen recording upload.
89
+
90
+ ### Quick Icon Styling
91
+
92
+ The quick icon is configurable at compile time through `YaverFeedback.init(...)`, with render-time overrides still available through `<QuickActionIcon />` props when needed. If you do nothing, the SDK uses a high-visibility orange bubble by default so it stays distinct from the blue/indigo FAB styling many mobile apps already have.
93
+
94
+ ```tsx
95
+ YaverFeedback.init({
96
+ trigger: 'shake',
97
+ quickIcon: 'after-shake',
98
+ quickIconBackgroundColor: '#0f766e',
99
+ quickIconForegroundColor: '#f8fafc',
100
+ quickIconBorderColor: 'rgba(255,255,255,0.85)',
101
+ quickIconShadowColor: '#000000',
102
+ });
103
+ ```
104
+
105
+ Available options:
106
+
107
+ - `quickIconBackgroundColor`: bubble fill color.
108
+ - `quickIconForegroundColor`: the `y` label color.
109
+ - `quickIconBorderColor`: outer ring color.
110
+ - `quickIconShadowColor`: shadow tint.
111
+ - `quickIconColor`: deprecated alias for `quickIconBackgroundColor`.
112
+ - `quickIconInitialPosition`: initial top-left position in pixels.
113
+
114
+ If you need a one-off local override instead of global SDK config:
115
+
116
+ ```tsx
117
+ <QuickActionIcon
118
+ backgroundColor="#111827"
119
+ foregroundColor="#f9fafb"
120
+ borderColor="#f59e0b"
121
+ />
122
+ ```
89
123
 
90
124
  ### Opt-out: bring-your-own auth (pre-0.5 behavior)
91
125
 
@@ -728,7 +762,7 @@ YaverFeedback.setEnabled(false);
728
762
  - Yaver CLI running on your dev machine (`yaver serve`)
729
763
  - Optional: `@react-native-async-storage/async-storage` for device discovery persistence
730
764
  - Optional: `react-native-view-shot` for screenshots
731
- - Optional: `react-native-audio-recorder-player` for voice notes
765
+ - Optional: `expo-document-picker` for file uploads
732
766
 
733
767
  ## API Reference
734
768
 
@@ -805,7 +839,7 @@ YaverFeedback.setEnabled(false);
805
839
 
806
840
  | Component | Description |
807
841
  |-----------|-------------|
808
- | `FeedbackModal` | Modal with mode selector, commentary, screenshots, voice |
842
+ | `FeedbackModal` | Modal with hot reload, vibing, screenshot or upload, and recording |
809
843
  | `FloatingButton` | Draggable overlay button to trigger feedback |
810
844
  | `YaverConnectionScreen` | Full-screen device discovery and connection UI |
811
845