Skip to content

Commit

Permalink
#845 | Use the right prop to identify if checked after RN upgrade, fi…
Browse files Browse the repository at this point in the history
…x multiple list orientation warning
  • Loading branch information
mahalakshme committed Feb 5, 2023
1 parent aead314 commit 3a30976
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class AttendanceFormElement extends AbstractFormElement {
<Text style={Styles.formBodyText}>{memberSubject.nameString}</Text>
</View>
<View style={{flex: .2, alignItems: 'flex-end', marginRight: 15}}>
<CheckBox onPress={onPress} checked={_.includes(subjectUUIDs, memberSubject.uuid)}/>
<CheckBox onPress={onPress} isChecked={_.includes(subjectUUIDs, memberSubject.uuid)}/>
</View>
</View>
</TouchableOpacity>
Expand All @@ -39,11 +39,9 @@ class AttendanceFormElement extends AbstractFormElement {
return (
<Fragment>
<FormElementLabelWithDocumentation element={this.props.element}/>
<FlatList
data={groupsSubjects}
renderItem={({item, index}) => this.renderSubject(item, subjectUUIDs, index)}
keyExtractor={item => item.uuid}
/>
{ _.map(groupsSubjects, (groupSubject, index) =>
this.renderSubject(groupSubject, subjectUUIDs, index)
)}
<ValidationErrorMessage validationResult={this.props.validationResult}/>
</Fragment>
)
Expand Down

0 comments on commit 3a30976

Please sign in to comment.