react-native-my-survey-sdk 2.2.16 → 2.2.17

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": "react-native-my-survey-sdk",
3
- "version": "2.2.16",
3
+ "version": "2.2.17",
4
4
  "description": "Xebo survey collection SDK for React Native",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -41,39 +41,36 @@ const _androidNavBar = Platform.OS === 'android'
41
41
  : 0;
42
42
 
43
43
  function computeSheetHeight(question: XeboQuestion | null, screen: ModalScreen): number {
44
- if (screen === 'thankYou') return SCREEN_HEIGHT * 0.35;
45
- if (screen === 'intro') return SCREEN_HEIGHT * 0.40;
46
- if (!question) return SCREEN_HEIGHT * 0.48;
44
+ if (screen === 'thankYou') return SCREEN_HEIGHT * 0.30;
45
+ if (screen === 'intro') return SCREEN_HEIGHT * 0.35;
46
+ if (!question) return SCREEN_HEIGHT * 0.42;
47
47
  switch (question.type) {
48
48
  case XeboQuestionType.multiNps:
49
49
  case XeboQuestionType.multiRating: {
50
50
  const rowCount = question.options?.length ?? 3;
51
- return Math.min(SCREEN_HEIGHT * 0.78, SCREEN_HEIGHT * (0.25 + rowCount * 0.15));
51
+ return Math.min(SCREEN_HEIGHT * 0.70, SCREEN_HEIGHT * (0.22 + rowCount * 0.13));
52
52
  }
53
53
  case XeboQuestionType.nps:
54
54
  return (question.conditionalFollowUps?.length ?? 0) > 0
55
- ? SCREEN_HEIGHT * 0.62
56
- : SCREEN_HEIGHT * 0.38;
55
+ ? SCREEN_HEIGHT * 0.55
56
+ : SCREEN_HEIGHT * 0.34;
57
57
  case XeboQuestionType.rating:
58
- return question.followUpQuestion ? SCREEN_HEIGHT * 0.56 : SCREEN_HEIGHT * 0.38;
58
+ return question.followUpQuestion ? SCREEN_HEIGHT * 0.50 : SCREEN_HEIGHT * 0.34;
59
59
  case XeboQuestionType.singleTextBox:
60
- // title + 4-line input + button — no wasted space
61
- return SCREEN_HEIGHT * 0.40;
60
+ return SCREEN_HEIGHT * 0.35;
62
61
  case XeboQuestionType.multipleTextBox: {
63
62
  const fieldCount = question.options?.length ?? 1;
64
- return Math.min(SCREEN_HEIGHT * 0.72, SCREEN_HEIGHT * (0.30 + fieldCount * 0.12));
63
+ return Math.min(SCREEN_HEIGHT * 0.65, SCREEN_HEIGHT * (0.26 + fieldCount * 0.10));
65
64
  }
66
65
  case XeboQuestionType.dropdown:
67
- // Must always fit: title + trigger + 200px open list + button + padding + header overhead
68
- // Minimum ~0.62 regardless of whether options are parsed yet
69
- return SCREEN_HEIGHT * 0.62;
66
+ return SCREEN_HEIGHT * 0.55;
70
67
  case XeboQuestionType.singleChoice:
71
68
  case XeboQuestionType.multipleChoice: {
72
69
  const optCount = question.options?.length ?? 0;
73
- return Math.min(SCREEN_HEIGHT * 0.80, SCREEN_HEIGHT * (0.28 + optCount * 0.085));
70
+ return Math.min(SCREEN_HEIGHT * 0.72, SCREEN_HEIGHT * (0.24 + optCount * 0.075));
74
71
  }
75
72
  default:
76
- return SCREEN_HEIGHT * 0.48;
73
+ return SCREEN_HEIGHT * 0.42;
77
74
  }
78
75
  }
79
76