Skip to content

Commit

Permalink
fix(questionnaire): toujours afficher les exemples de toxiques
Browse files Browse the repository at this point in the history
  • Loading branch information
tangimds committed Jan 12, 2022
1 parent 6c8f07b commit bc27b6a
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions src/scenes/survey/QuestionYesNo.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,23 +84,21 @@ const QuestionYesNo = ({
);
})}
</View>
{selected ? (
<TextInput
multiline={true}
numberOfLines={Platform.OS === 'ios' ? null : 1}
minHeight={Platform.OS === 'ios' ? 30 * 1 : null}
onChangeText={(value) => {
setText(value);
onChangeUserComment({key: question.id, userComment: value});
}}
value={text}
placeholder="Exemple: alcool, cannabis, tabac..."
style={styles.textArea}
textAlignVertical={'top'}
// onFocus={() => setInputFocused(true)}
// onBlur={() => setInputFocused(false)}
/>
) : null}
<TextInput
multiline={true}
numberOfLines={Platform.OS === 'ios' ? null : 1}
minHeight={Platform.OS === 'ios' ? 30 * 1 : null}
onChangeText={(value) => {
setText(value);
onChangeUserComment({key: question.id, userComment: value});
}}
value={text}
placeholder="Exemple: alcool, cannabis, tabac..."
style={styles.textArea}
textAlignVertical={'top'}
// onFocus={() => setInputFocused(true)}
// onBlur={() => setInputFocused(false)}
/>
</View>
</View>
);
Expand Down

0 comments on commit bc27b6a

Please sign in to comment.