mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Cleanup: Prefer React.Element over React$?Element
Reviewed By: vjeux Differential Revision: D4013049 fbshipit-source-id: 18a447fdbc584418d6a51770363bcd221e7fb7dc
This commit is contained in:
committed by
Facebook Github Bot
parent
beca25083a
commit
e8198aed8d
@@ -65,7 +65,7 @@ class SwipeableListView extends React.Component {
|
||||
props: Props;
|
||||
state: State;
|
||||
|
||||
_listViewRef: ?ReactElement<any> = null;
|
||||
_listViewRef: ?React.Element<any> = null;
|
||||
_shouldBounceFirstRowOnMount: boolean = false;
|
||||
|
||||
static getNewDataSource(): Object {
|
||||
@@ -118,7 +118,7 @@ class SwipeableListView extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
render(): ReactElement<any> {
|
||||
render(): React.Element<any> {
|
||||
return (
|
||||
<ListView
|
||||
{...this.props}
|
||||
@@ -163,7 +163,7 @@ class SwipeableListView extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
_renderRow = (rowData: Object, sectionID: string, rowID: string): ReactElement<any> => {
|
||||
_renderRow = (rowData: Object, sectionID: string, rowID: string): React.Element<any> => {
|
||||
const slideoutView = this.props.renderQuickActions(rowData, sectionID, rowID);
|
||||
|
||||
// If renderRowSlideout is unspecified or returns falsey, don't allow swipe
|
||||
|
||||
Reference in New Issue
Block a user