mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-25 21:05:40 +08:00
Adding $FlowFixMe to invalid prop accesses
Reviewed By: yungsters Differential Revision: D7977387 fbshipit-source-id: 442e7445be62f78bdf166a2b97ef031e39877355
This commit is contained in:
committed by
Facebook Github Bot
parent
7ba7acdee7
commit
f19ee28e7d
@@ -284,6 +284,7 @@ class SectionList<SectionT: SectionBase<any>> extends React.PureComponent<
|
||||
*/
|
||||
recordInteraction() {
|
||||
const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();
|
||||
// $FlowFixMe Invalid prop usage
|
||||
listRef && listRef.recordInteraction();
|
||||
}
|
||||
|
||||
@@ -294,6 +295,7 @@ class SectionList<SectionT: SectionBase<any>> extends React.PureComponent<
|
||||
*/
|
||||
flashScrollIndicators() {
|
||||
const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();
|
||||
// $FlowFixMe Invalid prop usage
|
||||
listRef && listRef.flashScrollIndicators();
|
||||
}
|
||||
|
||||
@@ -303,6 +305,7 @@ class SectionList<SectionT: SectionBase<any>> extends React.PureComponent<
|
||||
getScrollResponder(): ?ScrollView {
|
||||
const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();
|
||||
if (listRef) {
|
||||
// $FlowFixMe Invalid prop usage
|
||||
return listRef.getScrollResponder();
|
||||
}
|
||||
}
|
||||
@@ -310,6 +313,7 @@ class SectionList<SectionT: SectionBase<any>> extends React.PureComponent<
|
||||
getScrollableNode() {
|
||||
const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();
|
||||
if (listRef) {
|
||||
// $FlowFixMe Invalid prop usage
|
||||
return listRef.getScrollableNode();
|
||||
}
|
||||
}
|
||||
@@ -317,6 +321,7 @@ class SectionList<SectionT: SectionBase<any>> extends React.PureComponent<
|
||||
setNativeProps(props: Object) {
|
||||
const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();
|
||||
if (listRef) {
|
||||
// $FlowFixMe Invalid prop usage
|
||||
listRef.setNativeProps(props);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user