fix crash with onEndReached={null}

Reviewed By: bvaughn

Differential Revision: D4815310

fbshipit-source-id: 69d4a5a6fd247bdf877465a7cd07924a0dd6584b
This commit is contained in:
Spencer Ahrens
2017-04-03 19:07:44 -07:00
committed by Facebook Github Bot
parent e0bd35f76f
commit b12f6db0ef
5 changed files with 11 additions and 12 deletions

View File

@@ -34,7 +34,6 @@ exports[`FlatList renders all the bells and whistles 1`] = `
maxToRenderPerBatch={10}
numColumns={2}
onContentSizeChange={[Function]}
onEndReached={[Function]}
onEndReachedThreshold={2}
onLayout={[Function]}
onRefresh={[Function]}
@@ -134,7 +133,6 @@ exports[`FlatList renders empty list 1`] = `
maxToRenderPerBatch={10}
numColumns={1}
onContentSizeChange={[Function]}
onEndReached={[Function]}
onEndReachedThreshold={2}
onLayout={[Function]}
onScroll={[Function]}
@@ -164,7 +162,6 @@ exports[`FlatList renders null list 1`] = `
maxToRenderPerBatch={10}
numColumns={1}
onContentSizeChange={[Function]}
onEndReached={[Function]}
onEndReachedThreshold={2}
onLayout={[Function]}
onScroll={[Function]}
@@ -206,7 +203,6 @@ exports[`FlatList renders simple list 1`] = `
maxToRenderPerBatch={10}
numColumns={1}
onContentSizeChange={[Function]}
onEndReached={[Function]}
onEndReachedThreshold={2}
onLayout={[Function]}
onScroll={[Function]}

View File

@@ -26,7 +26,6 @@ exports[`SectionList rendering empty section headers is fine 1`] = `
keyExtractor={[Function]}
maxToRenderPerBatch={10}
onContentSizeChange={[Function]}
onEndReached={[Function]}
onEndReachedThreshold={2}
onLayout={[Function]}
onScroll={[Function]}
@@ -130,7 +129,6 @@ exports[`SectionList renders all the bells and whistles 1`] = `
keyExtractor={[Function]}
maxToRenderPerBatch={10}
onContentSizeChange={[Function]}
onEndReached={[Function]}
onEndReachedThreshold={2}
onLayout={[Function]}
onRefresh={[Function]}
@@ -269,7 +267,6 @@ exports[`SectionList renders empty list 1`] = `
keyExtractor={[Function]}
maxToRenderPerBatch={10}
onContentSizeChange={[Function]}
onEndReached={[Function]}
onEndReachedThreshold={2}
onLayout={[Function]}
onScroll={[Function]}