diff --git a/components/ContainerFillingKeyboardAvoidingView/index.tsx b/components/ContainerFillingKeyboardAvoidingView/index.tsx index 4694735e..c5a1bd68 100644 --- a/components/ContainerFillingKeyboardAvoidingView/index.tsx +++ b/components/ContainerFillingKeyboardAvoidingView/index.tsx @@ -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 = - (props) => { - switch (Platform.OS) { - case `ios`: - return ( - - ); +export const ContainerFillingKeyboardAvoidingView: React.FunctionComponent< + KeyboardAvoidingViewProps +> = (props) => { + switch (Platform.OS) { + case `ios`: + return ( + + ); - case `android`: - case `macos`: - case `windows`: - case `web`: - return ( - - ); - } - }; + case `android`: + case `macos`: + case `windows`: + case `web`: + return ( + + ); + } +}; diff --git a/components/ContainerFillingScrollView/index.tsx b/components/ContainerFillingScrollView/index.tsx index 3a693e5c..cd7cf19c 100644 --- a/components/ContainerFillingScrollView/index.tsx +++ b/components/ContainerFillingScrollView/index.tsx @@ -11,12 +11,13 @@ const styles = StyleSheet.create({ /** * A ScrollView which is styled to fill its container. */ -export const ContainerFillingScrollView: React.FunctionComponent = - (props) => ( - - ); +export const ContainerFillingScrollView: React.FunctionComponent< + ScrollViewProps +> = (props) => ( + +); diff --git a/package-lock.json b/package-lock.json index f0d04577..1e8d9845 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", @@ -11716,9 +11716,9 @@ } }, "node_modules/prettier": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.4.1.tgz", - "integrity": "sha512-9fbDAXSBcc6Bs1mZrDYb3XKzDLm4EXXL9sC1LqKP5rZkT6KRr/rf9amVUcODVXgguK/isJz0d0hP72WeaKWsvA==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.5.0.tgz", + "integrity": "sha512-FM/zAKgWTxj40rH03VxzIPdXmj39SwSjwG0heUcNFwI+EMZJnY93yAiKXM3dObIKAM5TA88werc8T/EwhB45eg==", "dev": true, "bin": { "prettier": "bin-prettier.js" @@ -23499,9 +23499,9 @@ "dev": true }, "prettier": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.4.1.tgz", - "integrity": "sha512-9fbDAXSBcc6Bs1mZrDYb3XKzDLm4EXXL9sC1LqKP5rZkT6KRr/rf9amVUcODVXgguK/isJz0d0hP72WeaKWsvA==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.5.0.tgz", + "integrity": "sha512-FM/zAKgWTxj40rH03VxzIPdXmj39SwSjwG0heUcNFwI+EMZJnY93yAiKXM3dObIKAM5TA88werc8T/EwhB45eg==", "dev": true }, "prettier-linter-helpers": { diff --git a/package.json b/package.json index 23b1385b..e449368d 100644 --- a/package.json +++ b/package.json @@ -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",