mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
List: Remove invalid props
Summary: These props were pretty much all typos and thus didn't do anything. My two choices are to change the code to do what it seems it *intends*, or keep the behavior the same. To de-risk, I'm preferring to keep the behavior the same. Changelog: [Internal] Differential Revision: D17834712 fbshipit-source-id: 2f6b6376ff5936d4ad20291022c043ff7808bac4
This commit is contained in:
committed by
Facebook Github Bot
parent
3042407f43
commit
8770151a77
@@ -147,8 +147,6 @@ class RNTesterExampleList extends React.Component<Props, $FlowFixMeState> {
|
||||
style={{backgroundColor: theme.SystemBackgroundColor}}
|
||||
sections={filteredSections}
|
||||
renderItem={this._renderItem}
|
||||
enableEmptySections={true}
|
||||
itemShouldUpdate={this._itemShouldUpdate}
|
||||
keyboardShouldPersistTaps="handled"
|
||||
automaticallyAdjustContentInsets={false}
|
||||
keyboardDismissMode="on-drag"
|
||||
@@ -167,10 +165,6 @@ class RNTesterExampleList extends React.Component<Props, $FlowFixMeState> {
|
||||
);
|
||||
}
|
||||
|
||||
_itemShouldUpdate(curr, prev) {
|
||||
return curr.item !== prev.item;
|
||||
}
|
||||
|
||||
_renderItem = ({item, separators}) => (
|
||||
<RowComponent
|
||||
item={item}
|
||||
|
||||
Reference in New Issue
Block a user