diff --git a/src/plugins/remark-npm2yarn.mjs b/src/plugins/remark-npm2yarn.mjs index 944b44a2d8..4e05870edb 100644 --- a/src/plugins/remark-npm2yarn.mjs +++ b/src/plugins/remark-npm2yarn.mjs @@ -24,7 +24,11 @@ function createTabItem({ code, node, pm }) { name: 'TabItem', attributes: [ { type: 'mdxJsxAttribute', name: 'value', value: pm }, - { type: 'mdxJsxAttribute', name: 'label', value: createLabelWithIcon(pm) }, + { + type: 'mdxJsxAttribute', + name: 'label', + value: createLabelWithIcon(pm), + }, ], children: [{ type: node.type, lang: node.lang, value: code }], }; diff --git a/versioned_docs/version-6.x/material-top-tab-navigator.md b/versioned_docs/version-6.x/material-top-tab-navigator.md index 1d1646e588..1a25e1849e 100755 --- a/versioned_docs/version-6.x/material-top-tab-navigator.md +++ b/versioned_docs/version-6.x/material-top-tab-navigator.md @@ -107,6 +107,18 @@ String indicating whether the keyboard gets dismissed in response to a drag gest - `'on-drag'`: the keyboard is dismissed when a drag begins. - `'none'`: drags do not dismiss the keyboard. +#### `overScrollMode` + +Used to override default value of pager's overScroll mode. + +Possible values: + +- `'auto'` (default): Allow a user to over-scroll this view only if the content is large enough to meaningfully scroll. +- `'always'`: Always allow a user to over-scroll this view. +- `'never'`: Never allow a user to over-scroll this view. + +Only supported on Android. + #### `initialLayout` Object containing the initial height and width of the screens. Passing this will improve the initial rendering performance. For most apps, this is a good default: diff --git a/versioned_docs/version-6.x/tab-view.md b/versioned_docs/version-6.x/tab-view.md index 78d137b11c..195cb12562 100644 --- a/versioned_docs/version-6.x/tab-view.md +++ b/versioned_docs/version-6.x/tab-view.md @@ -285,6 +285,18 @@ String indicating whether the keyboard gets dismissed in response to a drag gest - `'on-drag'`: the keyboard is dismissed when a drag begins. - `'none'`: drags do not dismiss the keyboard. +##### `overScrollMode` + +Used to override default value of pager's overScroll mode. + +Possible values: + +- `'auto'` (default): Allow a user to over-scroll this view only if the content is large enough to meaningfully scroll. +- `'always'`: Always allow a user to over-scroll this view. +- `'never'`: Never allow a user to over-scroll this view. + +Only supported on Android. + ##### `swipeEnabled` Boolean indicating whether to enable swipe gestures. Swipe gestures are enabled by default. Passing `false` will disable swipe gestures, but the user can still switch tabs by pressing the tab bar. @@ -312,10 +324,6 @@ Object containing the initial height and width of the screens. Passing this will /> ``` -##### `overScrollMode` - -Used to override default value of pager's overScroll mode. Can be `auto`, `always` or `never` (Android only). - ##### `sceneContainerStyle` Style to apply to the view wrapping each screen. You can pass this to override some default styles such as overflow clipping: diff --git a/versioned_docs/version-7.x/material-top-tab-navigator.md b/versioned_docs/version-7.x/material-top-tab-navigator.md index 2942f68776..d9be5a5399 100755 --- a/versioned_docs/version-7.x/material-top-tab-navigator.md +++ b/versioned_docs/version-7.x/material-top-tab-navigator.md @@ -135,6 +135,18 @@ String indicating whether the keyboard gets dismissed in response to a drag gest - `'on-drag'`: the keyboard is dismissed when a drag begins. - `'none'`: drags do not dismiss the keyboard. +##### `overScrollMode` + +Used to override default value of pager's overScroll mode. + +Possible values: + +- `'auto'` (default): Allow a user to over-scroll this view only if the content is large enough to meaningfully scroll. +- `'always'`: Always allow a user to over-scroll this view. +- `'never'`: Never allow a user to over-scroll this view. + +Only supported on Android. + #### `initialLayout` Object containing the initial height and width of the screens. Passing this will improve the initial rendering performance. For most apps, this is a good default: diff --git a/versioned_docs/version-7.x/tab-view.md b/versioned_docs/version-7.x/tab-view.md index b1e13b3d2c..f5b5127cb6 100644 --- a/versioned_docs/version-7.x/tab-view.md +++ b/versioned_docs/version-7.x/tab-view.md @@ -300,6 +300,18 @@ String indicating whether the keyboard gets dismissed in response to a drag gest - `'on-drag'`: the keyboard is dismissed when a drag begins. - `'none'`: drags do not dismiss the keyboard. +##### `overScrollMode` + +Used to override default value of pager's overScroll mode. + +Possible values: + +- `'auto'` (default): Allow a user to over-scroll this view only if the content is large enough to meaningfully scroll. +- `'always'`: Always allow a user to over-scroll this view. +- `'never'`: Never allow a user to over-scroll this view. + +Only supported on Android. + ##### `swipeEnabled` Boolean indicating whether to enable swipe gestures. Swipe gestures are enabled by default. Passing `false` will disable swipe gestures, but the user can still switch tabs by pressing the tab bar. @@ -327,10 +339,6 @@ Object containing the initial height and width of the screens. Passing this will /> ``` -##### `overScrollMode` - -Used to override default value of pager's overScroll mode. Can be `auto`, `always` or `never` (Android only). - ##### `pagerStyle` Style to apply to the pager view wrapping all the scenes. diff --git a/versioned_docs/version-8.x/material-top-tab-navigator.md b/versioned_docs/version-8.x/material-top-tab-navigator.md index 3797f280e7..b0977b22f8 100755 --- a/versioned_docs/version-8.x/material-top-tab-navigator.md +++ b/versioned_docs/version-8.x/material-top-tab-navigator.md @@ -135,6 +135,18 @@ String indicating whether the keyboard gets dismissed in response to a drag gest - `'on-drag'`: the keyboard is dismissed when a drag begins. - `'none'`: drags do not dismiss the keyboard. +##### `overScrollMode` + +Used to override default value of pager's overScroll mode. + +Possible values: + +- `'auto'` (default): Allow a user to over-scroll this view only if the content is large enough to meaningfully scroll. +- `'always'`: Always allow a user to over-scroll this view. +- `'never'`: Never allow a user to over-scroll this view. + +Only supported on Android. + #### `initialLayout` Object containing the initial height and width of the screens. Passing this will improve the initial rendering performance. For most apps, this is a good default: diff --git a/versioned_docs/version-8.x/tab-view.md b/versioned_docs/version-8.x/tab-view.md index 81250da1f2..0463ae8c7e 100644 --- a/versioned_docs/version-8.x/tab-view.md +++ b/versioned_docs/version-8.x/tab-view.md @@ -304,6 +304,18 @@ String indicating whether the keyboard gets dismissed in response to a drag gest - `'on-drag'`: the keyboard is dismissed when a drag begins. - `'none'`: drags do not dismiss the keyboard. +##### `overScrollMode` + +Used to override default value of pager's overScroll mode. + +Possible values: + +- `'auto'` (default): Allow a user to over-scroll this view only if the content is large enough to meaningfully scroll. +- `'always'`: Always allow a user to over-scroll this view. +- `'never'`: Never allow a user to over-scroll this view. + +Only supported on Android. + ##### `swipeEnabled` Boolean indicating whether to enable swipe gestures. Swipe gestures are enabled by default. Passing `false` will disable swipe gestures, but the user can still switch tabs by pressing the tab bar. @@ -397,10 +409,6 @@ Object containing the initial height and width of the screens. Passing this will /> ``` -##### `overScrollMode` - -Used to override default value of pager's overScroll mode. Can be `auto`, `always` or `never` (Android only). - ##### `pagerStyle` Style to apply to the pager view wrapping all the scenes.