react-native-my-survey-sdk 3.1.0 → 3.1.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.
@@ -126,6 +126,7 @@ const XeboMultipleChoiceView = ({ question, isLastQuestion, onAnswer }) => {
126
126
  exports.XeboMultipleChoiceView = XeboMultipleChoiceView;
127
127
  const styles = react_native_1.StyleSheet.create({
128
128
  container: {
129
+ flex: 1,
129
130
  paddingHorizontal: 20,
130
131
  paddingTop: 16,
131
132
  paddingBottom: 24,
@@ -141,7 +142,7 @@ const styles = react_native_1.StyleSheet.create({
141
142
  marginBottom: 16,
142
143
  },
143
144
  optionsList: {
144
- maxHeight: 280,
145
+ flex: 1,
145
146
  marginBottom: 12,
146
147
  },
147
148
  optionRow: {
@@ -94,13 +94,13 @@ function RatingIcon({ style, index, selected, filled, color, hasSelection, }) {
94
94
  width: 42,
95
95
  height: 42,
96
96
  borderRadius: 21,
97
- backgroundColor: filled ? activeColor : 'transparent',
98
- borderWidth: filled ? 2.5 : 1.5,
97
+ backgroundColor: 'transparent',
98
+ borderWidth: filled ? 3 : 1.5,
99
99
  borderColor: filled ? activeColor : '#D1D5DB',
100
100
  alignItems: 'center',
101
101
  justifyContent: 'center',
102
102
  }}>
103
- <react_native_1.Text style={{ fontSize: 16, fontWeight: '600', color: filled ? '#FFFFFF' : '#6B7280' }}>
103
+ <react_native_1.Text style={{ fontSize: 16, fontWeight: '600', color: filled ? activeColor : '#6B7280' }}>
104
104
  {index + 1}
105
105
  </react_native_1.Text>
106
106
  </react_native_1.View>);
@@ -110,6 +110,7 @@ const XeboSingleChoiceView = ({ question, isLastQuestion, onAnswer }) => {
110
110
  exports.XeboSingleChoiceView = XeboSingleChoiceView;
111
111
  const styles = react_native_1.StyleSheet.create({
112
112
  container: {
113
+ flex: 1,
113
114
  paddingHorizontal: 20,
114
115
  paddingTop: 16,
115
116
  paddingBottom: 24,
@@ -125,7 +126,7 @@ const styles = react_native_1.StyleSheet.create({
125
126
  marginBottom: 16,
126
127
  },
127
128
  optionsList: {
128
- maxHeight: 280,
129
+ flex: 1,
129
130
  marginBottom: 12,
130
131
  },
131
132
  optionRow: {
@@ -74,7 +74,7 @@ function computeSheetHeight(question, screen, sh) {
74
74
  case XeboModels_1.XeboQuestionType.rating:
75
75
  return question.followUpQuestion ? sh * 0.55 : sh * 0.38;
76
76
  case XeboModels_1.XeboQuestionType.singleTextBox:
77
- return sh * 0.55;
77
+ return sh * 0.38;
78
78
  case XeboModels_1.XeboQuestionType.multipleTextBox: {
79
79
  const fieldCount = (_f = (_e = question.options) === null || _e === void 0 ? void 0 : _e.length) !== null && _f !== void 0 ? _f : 1;
80
80
  return Math.min(sh * 0.70, sh * (0.28 + fieldCount * 0.10));
@@ -104,9 +104,9 @@ const XeboTextBoxView = ({ question, isLastQuestion, onAnswer }) => {
104
104
  color: theme.textColor,
105
105
  fontFamily: theme.fontFamily,
106
106
  borderRadius: theme.cornerRadius,
107
- minHeight: isMulti ? 48 : 130,
107
+ minHeight: 48,
108
108
  },
109
- ]} placeholder={isMulti ? '' : (question.placeholder || 'Type your answer here...')} placeholderTextColor="#9CA3AF" value={(_a = values[field.id]) !== null && _a !== void 0 ? _a : ''} onChangeText={text => handleChange(field.id, text)} onFocus={() => handleFocus(idx)} multiline={!isMulti} numberOfLines={isMulti ? 1 : 6} textAlignVertical={isMulti ? 'center' : 'top'} returnKeyType={idx === fields.length - 1 ? 'done' : 'next'}/>
109
+ ]} placeholder={isMulti ? '' : (question.placeholder || 'Type your answer here...')} placeholderTextColor="#9CA3AF" value={(_a = values[field.id]) !== null && _a !== void 0 ? _a : ''} onChangeText={text => handleChange(field.id, text)} onFocus={() => handleFocus(idx)} multiline={!isMulti} numberOfLines={isMulti ? 1 : 4} textAlignVertical={isMulti ? 'center' : 'top'} returnKeyType={idx === fields.length - 1 ? 'done' : 'next'}/>
110
110
  </react_native_1.View>);
111
111
  })}
112
112
  </react_native_1.ScrollView>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-my-survey-sdk",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "Xebo survey collection SDK for React Native",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",