Skip to content

Commit

Permalink
[#74] Optimizing & slight refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
JamalG16 authored and daniakalomiris committed Nov 28, 2019
1 parent 9f225f4 commit 1d7ca07
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/src/components/workOrderForm/WorkOrderForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import { formStyles } from '../../stylesheets/CreateWorkOrderPageStyleSheet';

const WorkOrderForm = (props) => {
return(
<KeyboardAwareScrollView scrollEnabled={false} resetScrollToCoords={{ x: 0, y: 0 }}
automaticallyAdjustContentInsets={false}
contentContainerStyle={formStyles.container, {paddingTop:
(Platform.OS === "android" || Platform.OS === "ios") ? StatusBar.currentHeight : 0}}>
<KeyboardAwareScrollView keyboardOpeningTime={0} scrollEnabled={false}
resetScrollToCoords={{ x: 0, y: 0 }} automaticallyAdjustContentInsets={false}
contentContainerStyle={[formStyles.container, {paddingTop:
(Platform.OS === "android" || Platform.OS === "ios") ? StatusBar.currentHeight : 0}]}>
<View style={{flex: 1}}>
<Header {...props} headerText={props.headerText}/>
</View>
Expand Down

0 comments on commit 1d7ca07

Please sign in to comment.