Skip to content

Commit

Permalink
minor RLV list cleanup (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedemarais authored Jan 22, 2020
1 parent 130c0b8 commit 059868d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions src/components/asset-list/RecyclerAssetList.js
Original file line number Diff line number Diff line change
Expand Up @@ -793,9 +793,9 @@ class RecyclerAssetList extends Component {
});
};

stickyRowRenderer = (type, data) => {
return <AssetListHeaderRenderer {...data} isSticky />;
};
stickyRowRenderer = (_, data) => (
<AssetListHeaderRenderer {...data} isSticky />
);

render() {
const {
Expand All @@ -809,19 +809,19 @@ class RecyclerAssetList extends Component {
return (
<View backgroundColor={colors.white} flex={1} overflow="hidden">
<StickyContainer
stickyHeaderIndices={headersIndices}
overrideRowRenderer={this.stickyRowRenderer}
stickyHeaderIndices={headersIndices}
>
<RecyclerListView
dataProvider={dataProvider}
disableRecycling
extendedState={{ headersIndices }}
itemAnimator={layoutItemAnimator}
externalScrollView={externalScrollView}
itemAnimator={layoutItemAnimator}
layoutProvider={this.layoutProvider}
onScroll={this.handleScroll}
ref={this.handleListRef}
renderAheadOffset={renderAheadOffset}
disableRecycling
rowRenderer={this.rowRenderer}
scrollIndicatorInsets={{
bottom: safeAreaInsetValues.bottom,
Expand Down
8 changes: 4 additions & 4 deletions src/components/send/SendAssetList.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { FlyInAnimation } from '../animations';
import { CollectiblesSendRow, SendCoinRow } from '../coin-row';
import { View } from 'react-primitives';
import {
RecyclerListView,
LayoutProvider,
DataProvider,
LayoutProvider,
RecyclerListView,
} from 'recyclerlistview';
import { LayoutAnimation } from 'react-native';
import TokenFamilyHeader from '../token-family/TokenFamilyHeader';
Expand All @@ -16,9 +16,9 @@ import FastImage from 'react-native-fast-image';
import styled from 'styled-components/primitives/dist/styled-components-primitives.esm';
import { colors } from '../../styles';

const rowHeight = 64;
const familyHeaderHeight = 62;
const dividerHeight = 18;
const familyHeaderHeight = 62;
const rowHeight = 64;

const Divider = styled.View`
background-color: ${colors.lighterGrey};
Expand Down

0 comments on commit 059868d

Please sign in to comment.