Add snapshot tests for sticky headers
Reviewed By: TheSavior Differential Revision: D5751337 fbshipit-source-id: d281c1a81c7ec7135686b705c376c90d44218fdc
This commit is contained in:
parent
1e8f3b1102
commit
f37fc6705a
|
@ -15,6 +15,7 @@
|
|||
const MetroListView = require('MetroListView');
|
||||
const Platform = require('Platform');
|
||||
const React = require('React');
|
||||
const ScrollView = require('ScrollView');
|
||||
const VirtualizedSectionList = require('VirtualizedSectionList');
|
||||
|
||||
import type {ViewToken} from 'ViewabilityHelper';
|
||||
|
@ -186,7 +187,7 @@ type OptionalProps<SectionT: SectionBase<any>> = {
|
|||
legacyImplementation?: ?boolean,
|
||||
};
|
||||
|
||||
type Props<SectionT> = RequiredProps<SectionT> &
|
||||
export type Props<SectionT> = RequiredProps<SectionT> &
|
||||
OptionalProps<SectionT> &
|
||||
VirtualizedSectionListProps<SectionT>;
|
||||
|
||||
|
@ -302,7 +303,7 @@ class SectionList<SectionT: SectionBase<any>> extends React.PureComponent<
|
|||
/**
|
||||
* Provides a handle to the underlying scroll responder.
|
||||
*/
|
||||
getScrollResponder() {
|
||||
getScrollResponder(): ?ScrollView {
|
||||
const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();
|
||||
if (listRef) {
|
||||
return listRef.getScrollResponder();
|
||||
|
|
Loading…
Reference in New Issue