代码拉取完成,页面将自动刷新
同步操作将从 Rays/react-native-keyboard-aware-scroll-view 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
// Type definitions for react-native-keyboard-aware-scroll-view
// Project: https://github.com/APSL/react-native-keyboard-aware-scroll-view
// Definitions by: Kyle Roach <https://github.com/iRoachie>
// TypeScript Version: 2.3.2
import * as React from 'react'
import {
ScrollViewProps,
FlatListProps,
SectionListProps
} from 'react-native'
interface KeyboardAwareProps {
/**
* Catches the reference of the component.
*
*
* @type {function}
* @memberof KeyboardAwareProps
*/
innerRef?: (ref: JSX.Element) => void
/**
* Adds an extra offset that represents the TabBarIOS height.
*
* Default is false
* @type {boolean}
* @memberof KeyboardAwareProps
*/
viewIsInsideTabBar?: boolean
/**
* Coordinates that will be used to reset the scroll when the keyboard hides.
*
* @type {{
* x: number,
* y: number
* }}
* @memberof KeyboardAwareProps
*/
resetScrollToCoords?: {
x: number
y: number
}
/**
* Lets the user enable or disable automatic resetScrollToCoords
*
* @type {boolean}
* @memberof KeyboardAwareProps
*/
enableResetScrollToCoords?: boolean
/**
* When focus in TextInput will scroll the position
*
* Default is true
*
* @type {boolean}
* @memberof KeyboardAwareProps
*/
enableAutomaticScroll?: boolean
/**
* Enables keyboard aware settings for Android
*
* Default is false
*
* @type {boolean}
* @memberof KeyboardAwareProps
*/
enableOnAndroid?: boolean
/**
* Adds an extra offset when focusing the TextInputs.
*
* Default is 75
* @type {number}
* @memberof KeyboardAwareProps
*/
extraHeight?: number
/**
* Adds an extra offset to the keyboard.
* Useful if you want to stick elements above the keyboard.
*
* Default is 0
*
* @type {number}
* @memberof KeyboardAwareProps
*/
extraScrollHeight?: number
/**
* Sets the delay time before scrolling to new position
*
* Default is 250
*
* @type {number}
* @memberof KeyboardAwareProps
*/
keyboardOpeningTime?: number
/**
* Callback when the keyboard will show.
*
* @param frames Information about the keyboard frame and animation.
*/
onKeyboardWillShow?: (frames: Object) => void
/**
* Callback when the keyboard did show.
*
* @param frames Information about the keyboard frame and animation.
*/
onKeyboardDidShow?: (frames: Object) => void
/**
* Callback when the keyboard will hide.
*
* @param frames Information about the keyboard frame and animation.
*/
onKeyboardWillHide?: (frames: Object) => void
/**
* Callback when the keyboard did hide.
*
* @param frames Information about the keyboard frame and animation.
*/
onKeyboardDidHide?: (frames: Object) => void
/**
* Callback when the keyboard frame will change.
*
* @param frames Information about the keyboard frame and animation.
*/
onKeyboardWillChangeFrame?: (frames: Object) => void
/**
* Callback when the keyboard frame did change.
*
* @param frames Information about the keyboard frame and animation.
*/
onKeyboardDidChangeFrame?: (frames: Object) => void
}
interface KeyboardAwareScrollViewProps
extends KeyboardAwareProps,
ScrollViewProps {}
interface KeyboardAwareFlatListProps<ItemT>
extends KeyboardAwareProps,
FlatListProps<ItemT> {}
interface KeyboardAwareSectionListProps<ItemT>
extends KeyboardAwareProps,
SectionListProps<ItemT> {}
interface KeyboardAwareState {
keyboardSpace: number
}
declare class ScrollableComponent<P, S> extends React.Component<P, S> {
getScrollResponder: () => void
scrollToPosition: (x: number, y: number, animated?: boolean) => void
scrollToEnd: (animated?: boolean) => void
scrollForExtraHeightOnAndroid: (extraHeight: number) => void
scrollToFocusedInput: (
reactNode: Object,
extraHeight?: number,
keyboardOpeningTime?: number
) => void
}
export class KeyboardAwareMixin {}
export class KeyboardAwareScrollView extends ScrollableComponent<
KeyboardAwareScrollViewProps,
KeyboardAwareState
> {}
export class KeyboardAwareFlatList extends ScrollableComponent<
KeyboardAwareFlatListProps<any>,
KeyboardAwareState
> {}
export class KeyboardAwareSectionList extends ScrollableComponent<
KeyboardAwareSectionListProps<any>,
KeyboardAwareState
> {}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。