Skip to content

Commit

Permalink
Added form's containerStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
budiadiono committed Oct 14, 2018
1 parent b8b2e43 commit 9359ba0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export interface FormProps<T> {
) => void
onError?: (errors: FormValidationErrors<T>) => void
style?: StyleProp<ViewStyle>
containerStyle?: StyleProp<ViewStyle>
resetOnInitialValueChanged?: boolean
}

Expand Down Expand Up @@ -61,9 +62,10 @@ export class Form<T = {}> extends React.Component<FormProps<T>, State<T>> {
}

render() {
const { children, style } = this.props
const { children, style, containerStyle } = this.props
return (
<ScrollView
style={containerStyle}
keyboardShouldPersistTaps="handled"
contentContainerStyle={style}
>
Expand Down

0 comments on commit 9359ba0

Please sign in to comment.