Skip to content

Commit

Permalink
Added disableKBDismissScroll flag
Browse files Browse the repository at this point in the history
Added the `disableKBDismissScroll` flag, really need to improve the name
  • Loading branch information
brianjd committed Sep 10, 2016
1 parent bc98be8 commit d92aa1b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Components/Widgets/Content.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ import computeProps from '../../Utils/computeProps';
export default class Content extends NativeBaseComponent {

propTypes: {
padder : React.PropTypes.bool,
style : React.PropTypes.object
padder: React.PropTypes.bool,
style : React.PropTypes.object,
disableKBDismissScroll: React.PropTypes.bool
}

prepareRootProps() {
Expand All @@ -23,7 +24,7 @@ export default class Content extends NativeBaseComponent {

var defaultProps = {
style: type,
resetScrollToCoords: {
resetScrollToCoords: (this.props.disableKBDismissScroll) ? null : {
x: 0,
y: 0
}
Expand Down

0 comments on commit d92aa1b

Please sign in to comment.