From 095b4da6e402abca19d517292eea8f96a9d8b8ea Mon Sep 17 00:00:00 2001 From: Kirill Zyusko Date: Mon, 16 Dec 2024 16:36:12 +0100 Subject: [PATCH] docs: TS errors in `KeyboardAvoidingView` (#733) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 📜 Description Remove `contentContainerStyle` for `KeyboardAvoidingView` in documentation as it's not needed and after https://github.com/kirillzyusko/react-native-keyboard-controller/pull/711 it trigerrs TS errors. ## 💡 Motivation and Context Conditional types were added intentionally to spot issues like this. Glad to see it works 😅 Closes https://github.com/kirillzyusko/react-native-keyboard-controller/issues/732 ## 📢 Changelog ### Docs - remove `contentContainerStyle` for `KeyboardAvoidingView`. ## 🤔 How Has This Been Tested? Tested on localhost:3000 ## 📝 Checklist - [x] CI successfully passed - [x] I added new mocks and corresponding unit-tests if library API was changed --- docs/docs/api/components/keyboard-avoiding-view.mdx | 4 ---- .../version-1.15.0/api/components/keyboard-avoiding-view.mdx | 4 ---- 2 files changed, 8 deletions(-) diff --git a/docs/docs/api/components/keyboard-avoiding-view.mdx b/docs/docs/api/components/keyboard-avoiding-view.mdx index 1c4c30e14..c4581c14f 100644 --- a/docs/docs/api/components/keyboard-avoiding-view.mdx +++ b/docs/docs/api/components/keyboard-avoiding-view.mdx @@ -48,7 +48,6 @@ export default function KeyboardAvoidingViewExample() { return ( @@ -67,9 +66,6 @@ export default function KeyboardAvoidingViewExample() { } const styles = StyleSheet.create({ - container: { - flex: 1, - }, content: { flex: 1, maxHeight: 600, diff --git a/docs/versioned_docs/version-1.15.0/api/components/keyboard-avoiding-view.mdx b/docs/versioned_docs/version-1.15.0/api/components/keyboard-avoiding-view.mdx index 1c4c30e14..c4581c14f 100644 --- a/docs/versioned_docs/version-1.15.0/api/components/keyboard-avoiding-view.mdx +++ b/docs/versioned_docs/version-1.15.0/api/components/keyboard-avoiding-view.mdx @@ -48,7 +48,6 @@ export default function KeyboardAvoidingViewExample() { return ( @@ -67,9 +66,6 @@ export default function KeyboardAvoidingViewExample() { } const styles = StyleSheet.create({ - container: { - flex: 1, - }, content: { flex: 1, maxHeight: 600,