Skip to content

Commit

Permalink
docs: TS errors in KeyboardAvoidingView (#733)
Browse files Browse the repository at this point in the history
## 📜 Description

Remove `contentContainerStyle` for `KeyboardAvoidingView` in
documentation as it's not needed and after
#711
it trigerrs TS errors.

## 💡 Motivation and Context

Conditional types were added intentionally to spot issues like this.
Glad to see it works 😅

Closes
#732

## 📢 Changelog

<!-- High level overview of important changes -->
<!-- For example: fixed status bar manipulation; added new types
declarations; -->
<!-- If your changes don't affect one of platform/language below - then
remove this platform/language -->

### 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
  • Loading branch information
kirillzyusko authored Dec 16, 2024
1 parent 1f71cc4 commit 095b4da
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions docs/docs/api/components/keyboard-avoiding-view.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export default function KeyboardAvoidingViewExample() {
return (
<KeyboardAvoidingView
behavior={"padding"}
contentContainerStyle={styles.container}
keyboardVerticalOffset={100}
style={styles.content}
>
Expand All @@ -67,9 +66,6 @@ export default function KeyboardAvoidingViewExample() {
}

const styles = StyleSheet.create({
container: {
flex: 1,
},
content: {
flex: 1,
maxHeight: 600,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export default function KeyboardAvoidingViewExample() {
return (
<KeyboardAvoidingView
behavior={"padding"}
contentContainerStyle={styles.container}
keyboardVerticalOffset={100}
style={styles.content}
>
Expand All @@ -67,9 +66,6 @@ export default function KeyboardAvoidingViewExample() {
}

const styles = StyleSheet.create({
container: {
flex: 1,
},
content: {
flex: 1,
maxHeight: 600,
Expand Down

0 comments on commit 095b4da

Please sign in to comment.