Skip to content

Commit

Permalink
#797 checklist view is scrollable
Browse files Browse the repository at this point in the history
  • Loading branch information
petmongrels committed Dec 29, 2022
1 parent faed1d4 commit 14c41e9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/openchs-android/src/views/program/ChecklistView.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import {ToastAndroid, Alert, BackHandler} from "react-native";
import {ToastAndroid, Alert, BackHandler, ScrollView} from "react-native";
import PropTypes from 'prop-types';
import React from "react";
import AbstractComponent from "../../framework/view/AbstractComponent";
import Path from "../../framework/routing/Path";
import ReducerKeys from "../../reducer";
import themes from "../primitives/themes";
import AppHeader from "../common/AppHeader";
import {ChecklistActionsNames as Actions} from "../../action/program/ChecklistActions";
import Colors from "../primitives/Colors";
Expand Down Expand Up @@ -72,12 +71,14 @@ class ChecklistView extends AbstractComponent {
data={checklist} i18n={this.I18n}
reloadCallback={() => this.dispatchAction(Actions.ON_LOAD, this.props)}/>);
return (
<CHSContainer style={{backgroundColor: Colors.BlackBackground}}>
<CHSContainer style={{backgroundColor: Colors.BlackBackground}}>
<CHSContent>
{this.showToast()}
<AppHeader func={() => this.goBack()}
title={`${this.state.individual.nameString} - ${this.I18n.t('checklists')}`}/>
{checklists}
<ScrollView>
{checklists}
</ScrollView>
</CHSContent>
</CHSContainer>
);
Expand Down

0 comments on commit 14c41e9

Please sign in to comment.