@upstep/react-native 0.6.0 → 0.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@upstep/react-native",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Upstep feedback SDK for React Native",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -13,6 +13,7 @@ import {
13
13
  useColorScheme,
14
14
  Platform,
15
15
  SafeAreaView,
16
+ Linking,
16
17
  } from "react-native";
17
18
  import type { Comment, Feedback, FeedbackType, FeedbackWithComments } from "@upstep/types";
18
19
  import { useUpstep } from "./FeedbackContext";
@@ -165,8 +166,19 @@ export function FeedbackSheet() {
165
166
  )}
166
167
  </ScrollView>
167
168
 
168
- {/* Safe area spacer */}
169
- <SafeAreaView />
169
+ {/* Branding */}
170
+ <TouchableOpacity
171
+ onPress={() => Linking.openURL("https://upstep.dev")}
172
+ activeOpacity={0.6}
173
+ style={[styles.poweredBy, { borderTopColor: p.border }]}
174
+ >
175
+ <Text style={[styles.poweredByText, { color: p.textFaint }]}>
176
+ Powered by <Text style={{ fontWeight: "700" }}>Upstep.dev</Text>
177
+ </Text>
178
+ </TouchableOpacity>
179
+
180
+ {/* Safe area spacer — fills the home-indicator / nav-bar zone */}
181
+ <SafeAreaView style={{ backgroundColor: p.bg }} />
170
182
  </View>
171
183
  </KeyboardAvoidingView>
172
184
  </Modal>
@@ -547,9 +559,9 @@ const styles = StyleSheet.create({
547
559
  backgroundColor: "rgba(0,0,0,0.45)",
548
560
  },
549
561
 
550
- // Sheet container
562
+ // Sheet container — fixed height so it's always fully open regardless of content
551
563
  sheet: {
552
- maxHeight: "92%",
564
+ height: "92%",
553
565
  borderTopLeftRadius: 24,
554
566
  borderTopRightRadius: 24,
555
567
  overflow: "hidden",
@@ -580,8 +592,8 @@ const styles = StyleSheet.create({
580
592
  newBtn: { borderRadius: 20, paddingHorizontal: 14, paddingVertical: 7 },
581
593
  newBtnText: { color: "#fff", fontSize: 13, fontWeight: "700" },
582
594
 
583
- // Scroll
584
- scroll: { flexGrow: 0 },
595
+ // Scroll — flex: 1 fills all remaining space after the fixed header
596
+ scroll: { flex: 1 },
585
597
  scrollContent: { flexGrow: 1, padding: 16, paddingBottom: 32 },
586
598
 
587
599
  // List
@@ -663,6 +675,14 @@ const styles = StyleSheet.create({
663
675
  successTitle: { fontSize: 20, fontWeight: "700", textAlign: "center", marginBottom: 6 },
664
676
  successSub: { fontSize: 14, textAlign: "center" },
665
677
 
678
+ // Branding
679
+ poweredBy: {
680
+ alignItems: "center",
681
+ paddingVertical: 10,
682
+ borderTopWidth: StyleSheet.hairlineWidth,
683
+ },
684
+ poweredByText: { fontSize: 11 },
685
+
666
686
  // Shared badges
667
687
  badge: { paddingHorizontal: 7, paddingVertical: 3, borderRadius: 6 },
668
688
  badgeText: { fontSize: 10, fontWeight: "700", letterSpacing: 0.2 },