Skip to content

Commit 90f9333

Browse files
Update README.md
1 parent b8407a7 commit 90f9333

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -170,23 +170,24 @@ const YourCustomInput = (props: Props) => {
170170
};
171171
```
172172

173-
## Props
173+
## Props (Optional)
174+
All of these props are optional. It is, however, recommended to use them to get the most out of the library.
174175

175176
#### MagicScroll.ScrollView:
176177

177178
| Name | Description | Values |
178179
| ---- | ----------- | ------ |
179-
| additionalPadding (optional) | adds extra padding between your text input and the keyboard | number |
180-
| scrollViewProps (optional) | contains all props of the scrollview from React's Reanimated library | [props](https://reactnative.dev/docs/scrollview#props) |
180+
| additionalPadding | adds extra padding between your text input and the keyboard | number |
181+
| scrollViewProps | contains all props of the scrollview from React's Reanimated library | [props](https://reactnative.dev/docs/scrollview#props) |
181182

182183
#### MagicScroll.TextInput:
183184

184185
| Name | Description | Values |
185186
| ---- | ----------- | ------ |
186-
| chainTo (optional) | a string containing the name of the next text input that will be focused when pressing the "Enter Key" | string |
187-
| containerStyle (optional) | contains all Style props of the View from React Native | [props](https://reactnative.dev/docs/view-style-props) |
188-
| name (optional) | a string to name the current text input, used in the "chainTo" props mentionned above | string |
189-
| renderBottom() (optional) | a function that renders components to display custom text under the text input | ```renderBottom={() => <Text>bottomText</Text>}``` |
190-
| renderTop() (optional) | a function that renders components to display custom text above the text input | ```renderTop={() => <Text>topText</Text>}``` |
191-
| textInputProps (optional) | contains all props of the TextInput component from React Native | [props](https://reactnative.dev/docs/textinput#props) |
187+
| chainTo | a string containing the name of the next text input that will be focused when pressing the "Enter Key" | string |
188+
| containerStyle | contains all Style props of the View from React Native | [props](https://reactnative.dev/docs/view-style-props) |
189+
| name | a string to name the current text input, used in the "chainTo" props mentionned above | string |
190+
| renderBottom() | a function that renders components to display custom text under the text input | ```renderBottom={() => <Text>bottomText</Text>}``` |
191+
| renderTop() | a function that renders components to display custom text above the text input | ```renderTop={() => <Text>topText</Text>}``` |
192+
| textInputProps | contains all props of the TextInput component from React Native | [props](https://reactnative.dev/docs/textinput#props) |
192193

0 commit comments

Comments
 (0)