react-native-my-survey-sdk 2.2.8 → 2.2.9

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.8",
3
+ "version": "2.2.9",
4
4
  "description": "Xebo survey collection SDK for React Native",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -12,9 +12,9 @@ export const XeboIntroView: React.FC<Props> = ({ introPage, onStart }) => {
12
12
  const theme = getTheme();
13
13
 
14
14
  return (
15
- <View style={styles.container}>
16
- {/* Scrollable content button is absolutely pinned at bottom so it's
17
- always visible regardless of how the flex layout settles on first render */}
15
+ // Same pattern as NPS/Rating: outer flex view, scroll takes remaining space,
16
+ // button sits OUTSIDE scroll in normal flow no absolute positioning needed.
17
+ <View style={styles.outer}>
18
18
  <ScrollView
19
19
  style={styles.scroll}
20
20
  contentContainerStyle={styles.scrollContent}
@@ -41,18 +41,15 @@ export const XeboIntroView: React.FC<Props> = ({ introPage, onStart }) => {
41
41
  };
42
42
 
43
43
  const styles = StyleSheet.create({
44
- container: {
44
+ outer: {
45
45
  flex: 1,
46
46
  paddingHorizontal: 20,
47
47
  paddingTop: 16,
48
- paddingBottom: 8,
48
+ paddingBottom: 16,
49
49
  },
50
- // marginBottom leaves a fixed gap for the absolutely-positioned button below.
51
- // 48 = button height (paddingVertical 14×2 + text ~20) + 12 gap = 60dp
52
50
  scroll: {
53
51
  flex: 1,
54
52
  minHeight: 0,
55
- marginBottom: 60,
56
53
  },
57
54
  scrollContent: {
58
55
  paddingBottom: 8,
@@ -61,15 +58,10 @@ const styles = StyleSheet.create({
61
58
  fontSize: 16,
62
59
  lineHeight: 24,
63
60
  },
64
- // Absolute positioning ensures this button is ALWAYS visible at the bottom,
65
- // immune to first-render flex layout measurement issues on Android.
66
61
  button: {
67
- position: 'absolute',
68
- bottom: 0,
69
- left: 0,
70
- right: 0,
71
62
  paddingVertical: 14,
72
63
  alignItems: 'center',
64
+ marginTop: 12,
73
65
  },
74
66
  buttonText: {
75
67
  color: '#FFFFFF',