Skip to content

Commit

Permalink
[#74] Optimizing & slight refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
JamalG16 committed Nov 16, 2019
1 parent d6d77ef commit d9c2728
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 d9c2728

Please sign in to comment.