Skip to content

Commit

Permalink
Merge pull request #62 from jameswilddev/renovate/prettier-2.x
Browse files Browse the repository at this point in the history
Update dependency prettier to v2.5.0
  • Loading branch information
jameswilddev authored Nov 25, 2021
2 parents d079a01 + 3fef78e commit 242381e
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 42 deletions.
51 changes: 26 additions & 25 deletions components/ContainerFillingKeyboardAvoidingView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,30 @@ const styles = StyleSheet.create({
* A KeyboardAvoidingView which is styled to fill its container (and uses
* platform-appropriate behavior by default).
*/
export const ContainerFillingKeyboardAvoidingView: React.FunctionComponent<KeyboardAvoidingViewProps> =
(props) => {
switch (Platform.OS) {
case `ios`:
return (
<KeyboardAvoidingView
pointerEvents="box-none"
style={styles.keyboardAvoidingView}
behavior="padding"
{...props}
/>
);
export const ContainerFillingKeyboardAvoidingView: React.FunctionComponent<
KeyboardAvoidingViewProps
> = (props) => {
switch (Platform.OS) {
case `ios`:
return (
<KeyboardAvoidingView
pointerEvents="box-none"
style={styles.keyboardAvoidingView}
behavior="padding"
{...props}
/>
);

case `android`:
case `macos`:
case `windows`:
case `web`:
return (
<KeyboardAvoidingView
pointerEvents="box-none"
style={styles.keyboardAvoidingView}
{...props}
/>
);
}
};
case `android`:
case `macos`:
case `windows`:
case `web`:
return (
<KeyboardAvoidingView
pointerEvents="box-none"
style={styles.keyboardAvoidingView}
{...props}
/>
);
}
};
19 changes: 10 additions & 9 deletions components/ContainerFillingScrollView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ const styles = StyleSheet.create({
/**
* A ScrollView which is styled to fill its container.
*/
export const ContainerFillingScrollView: React.FunctionComponent<ScrollViewProps> =
(props) => (
<ScrollView
pointerEvents="box-none"
style={styles.scrollView}
keyboardShouldPersistTaps="handled"
{...props}
/>
);
export const ContainerFillingScrollView: React.FunctionComponent<
ScrollViewProps
> = (props) => (
<ScrollView
pointerEvents="box-none"
style={styles.scrollView}
keyboardShouldPersistTaps="handled"
{...props}
/>
);
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"jest": "27.3.1",
"metro-react-native-babel-preset": "0.66.2",
"npm-run-all": "4.1.5",
"prettier": "2.4.1",
"prettier": "2.5.0",
"react": "17.0.2",
"react-native": "0.66.3",
"react-test-renderer": "17.0.2",
Expand Down

0 comments on commit 242381e

Please sign in to comment.