Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
roryabraham committed Aug 25, 2022
1 parent 34ca065 commit 1e27aca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/components/ScreenWrapper/index.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import React from 'react';
import BaseScreenWrapper from './BaseScreenWrapper';
import {defaultProps, propTypes} from './propTypes';

defaultProps.keyboardAvoidingViewBehavior = 'height';

const ScreenWrapper = props => (
<BaseScreenWrapper
// eslint-disable-next-line react/jsx-props-no-spreading
Expand All @@ -12,6 +10,9 @@ const ScreenWrapper = props => (
{props.children}
</BaseScreenWrapper>
);

defaultProps.keyboardAvoidingViewBehavior = 'height';

ScreenWrapper.propTypes = propTypes;
ScreenWrapper.defaultProps = defaultProps;

Expand Down
2 changes: 0 additions & 2 deletions src/components/ScreenWrapper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import React from 'react';
import BaseScreenWrapper from './BaseScreenWrapper';
import {defaultProps, propTypes} from './propTypes';

defaultProps.keyboardAvoidingViewBehavior = 'padding';

const ScreenWrapper = props => (
<BaseScreenWrapper
// eslint-disable-next-line react/jsx-props-no-spreading
Expand Down
1 change: 1 addition & 0 deletions src/components/ScreenWrapper/propTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const defaultProps = {
includePaddingTop: true,
onTransitionEnd: () => {},
modal: {},
keyboardAvoidingViewBehavior: 'padding',
};

export {propTypes, defaultProps};

0 comments on commit 1e27aca

Please sign in to comment.