Skip to content

Commit

Permalink
fix: add explanation for two Form props
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Pader committed Jan 20, 2023
1 parent 8172dce commit 8edc865
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,16 @@ const propTypes = {
/** Whether the form submit action is dangerous */
isSubmitActionDangerous: PropTypes.bool,

/** Defines wheter the overflow content of the form's ScrollView should be scrollable */
/** Defines wheter the overflow content of the form's ScrollView should be scrollable
* Should be set to true, when there's a nested Picker component relatively at the end of
* the ScrollView's content, so the opening Picker modal doesn't get rendered over the Picker
* Example can be found here: https://github.com/Expensify/App/issues/13909#issuecomment-1396859008
*/
scrollToOverflowEnabled: PropTypes.bool,

/** Defines wheter ScrollWithContext should be used instead of regular ScrollView */
/** Defines wheter ScrollWithContext should be used instead of regular ScrollView
* Should be set to true, when there's a nested Picker component in the ScrollView's children
*/
scrollContextEnabled: PropTypes.bool,

...withLocalizePropTypes,
Expand Down

0 comments on commit 8edc865

Please sign in to comment.