Skip to content

Commit

Permalink
docs: add info about view props inheritance to KeyboardAvoidingView
Browse files Browse the repository at this point in the history
… page (#606)

## 📜 Description

Add info about view props inheritance for `KeyboardAvoidingView`
component.

## 💡 Motivation and Context

It may be useful for people to know that `KeyboardAvoidingView` accepts
`ViewProps` (to add `testID` for example).

## 📢 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

- add info about view props inheritance for `KeyboardAvoidingView`
component.

## 🤔 How Has This Been Tested?

Tested on localhost:3000

## 📸 Screenshots (if appropriate):

<img width="1425" alt="image"
src="https://github.com/user-attachments/assets/421fa6d6-82de-419b-a56e-f6a50896e10b">

## 📝 Checklist

- [x] CI successfully passed
- [x] I added new mocks and corresponding unit-tests if library API was
changed
  • Loading branch information
kirillzyusko authored Sep 30, 2024
1 parent a4532d8 commit 9d8c618
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/docs/api/components/keyboard-avoiding-view.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ const styles = StyleSheet.create({

## Props

### [`View Props`](https://reactnative.dev/docs/view#props)

Inherits [View Props](https://reactnative.dev/docs/view#props).

### `behavior`

Specify how to react to the presence of the keyboard. Could be one value of:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ const styles = StyleSheet.create({

## Props

### [`View Props`](https://reactnative.dev/docs/view#props)

Inherits [View Props](https://reactnative.dev/docs/view#props).

### `behavior`

Specify how to react to the presence of the keyboard. Could be one value of:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ const styles = StyleSheet.create({

## Props

### [`View Props`](https://reactnative.dev/docs/view#props)

Inherits [View Props](https://reactnative.dev/docs/view#props).

### `behavior`

Specify how to react to the presence of the keyboard. Could be one value of:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ const styles = StyleSheet.create({

## Props

### [`View Props`](https://reactnative.dev/docs/view#props)

Inherits [View Props](https://reactnative.dev/docs/view#props).

### `behavior`

Specify how to react to the presence of the keyboard. Could be one value of:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ const styles = StyleSheet.create({

## Props

### [`View Props`](https://reactnative.dev/docs/view#props)

Inherits [View Props](https://reactnative.dev/docs/view#props).

### `behavior`

Specify how to react to the presence of the keyboard. Could be one value of:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ const styles = StyleSheet.create({

## Props

### [`View Props`](https://reactnative.dev/docs/view#props)

Inherits [View Props](https://reactnative.dev/docs/view#props).

### `behavior`

Specify how to react to the presence of the keyboard. Could be one value of:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ const styles = StyleSheet.create({

## Props

### [`View Props`](https://reactnative.dev/docs/view#props)

Inherits [View Props](https://reactnative.dev/docs/view#props).

### `behavior`

Specify how to react to the presence of the keyboard. Could be one value of:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ const styles = StyleSheet.create({

## Props

### [`View Props`](https://reactnative.dev/docs/view#props)

Inherits [View Props](https://reactnative.dev/docs/view#props).

### `behavior`

Specify how to react to the presence of the keyboard. Could be one value of:
Expand Down

0 comments on commit 9d8c618

Please sign in to comment.