mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 09:01:45 +08:00
react-input-mask and react-native-scrollable-tab-view: fix linter issues (trailing whitespace)
This commit is contained in:
2
react-input-mask/index.d.ts
vendored
2
react-input-mask/index.d.ts
vendored
@@ -13,7 +13,7 @@ declare namespace reactInputMask {
|
||||
* * `9`: `0-9`
|
||||
* * `a`: `A-Z, a-z`
|
||||
* * `\*`: `A-Z, a-z, 0-9`
|
||||
*
|
||||
*
|
||||
* Any character can be escaped with backslash, which usually will appear as double backslash in JS strings. For example, German phone mask with unremoveable prefix +49 will look like `mask="+4\\9 99 999 99"` or `mask={"+4\\\\9 99 999 99"}`
|
||||
*/
|
||||
mask: string;
|
||||
|
||||
18
react-native-scrollable-tab-view/index.d.ts
vendored
18
react-native-scrollable-tab-view/index.d.ts
vendored
@@ -37,9 +37,9 @@ export interface renderTabBarProperties {
|
||||
interface ScrollableTabViewProperties extends React.Props<ScrollableTabView> {
|
||||
|
||||
/**
|
||||
* tabBarPosition (String) Defaults to "top".
|
||||
* tabBarPosition (String) Defaults to "top".
|
||||
* "bottom" to position the tab bar below content.
|
||||
* "overlayTop" or "overlayBottom" for a semitransparent tab bar that overlays content. Custom
|
||||
* "overlayTop" or "overlayBottom" for a semitransparent tab bar that overlays content. Custom
|
||||
* tab bars must consume a style prop on their outer element to support this feature: style={this.props.style}.
|
||||
*/
|
||||
tabBarPosition?: 'top' | 'bottom' | 'overlayTop' | 'overlayBottom';
|
||||
@@ -50,27 +50,27 @@ interface ScrollableTabViewProperties extends React.Props<ScrollableTabView> {
|
||||
initialPage?: number;
|
||||
|
||||
/**
|
||||
* (Integer) - set selected tab(can be buggy see
|
||||
* (Integer) - set selected tab(can be buggy see
|
||||
* https://github.com/skv-headless/react-native-scrollable-tab-view/issues/126
|
||||
*/
|
||||
page?: number;
|
||||
|
||||
/**
|
||||
* onChangeTab (Function) - function to call when tab changes, should accept 1 argument which is
|
||||
* an Object containing two keys: i: the index of the tab that is selected, ref: the ref of the
|
||||
* onChangeTab (Function) - function to call when tab changes, should accept 1 argument which is
|
||||
* an Object containing two keys: i: the index of the tab that is selected, ref: the ref of the
|
||||
* tab that is selected
|
||||
*/
|
||||
onChangeTab?: (value: onChangeTabProperties) => void;
|
||||
|
||||
/**
|
||||
* onScroll (Function) - function to call when the pages are sliding,
|
||||
* onScroll (Function) - function to call when the pages are sliding,
|
||||
* should accept 1 argument which is an Float number representing the page position in the slide frame.
|
||||
*/
|
||||
onScroll?: (value: number) => void;
|
||||
|
||||
/**
|
||||
* renderTabBar (Function:ReactComponent) - accept 1 argument props and should return a component
|
||||
* to use as the tab bar. The component has goToPage, tabs, activeTab and ref added to the props,
|
||||
* to use as the tab bar. The component has goToPage, tabs, activeTab and ref added to the props,
|
||||
* and should implement setAnimationValue to be able to animate itself along with the tab content.
|
||||
* You can manually pass the props to the TabBar component.
|
||||
*/
|
||||
@@ -82,7 +82,7 @@ interface ScrollableTabViewProperties extends React.Props<ScrollableTabView> {
|
||||
style?: ViewStyle;
|
||||
|
||||
/**
|
||||
* contentProps (Object) - props that are applied to root ScrollView/ViewPagerAndroid.
|
||||
* contentProps (Object) - props that are applied to root ScrollView/ViewPagerAndroid.
|
||||
* Note that overriding defaults set by the library may break functionality; see the source for details.
|
||||
*/
|
||||
contentProps?: React.ScrollViewProperties;
|
||||
@@ -98,7 +98,7 @@ interface ScrollableTabViewProperties extends React.Props<ScrollableTabView> {
|
||||
locked?: boolean;
|
||||
|
||||
/**
|
||||
* prerenderingSiblingsNumber (Integer) - pre-render nearby # sibling, Infinity === render all
|
||||
* prerenderingSiblingsNumber (Integer) - pre-render nearby # sibling, Infinity === render all
|
||||
* the siblings, default to 0 === render current page.
|
||||
*/
|
||||
prerenderingSiblingsNumber?: number;
|
||||
|
||||
Reference in New Issue
Block a user