Fixed flatlist key issue

This commit is contained in:
Mustafa Buyukcelebi 2018-12-20 23:23:12 +03:00
parent 54869a8a4a
commit da7bc30eb4
4 changed files with 2 additions and 3 deletions

View File

@ -40,7 +40,6 @@ export default EStyleSheet.create({
alignSelf: 'center',
},
rightIcon: {
color: '$iconColor',
justifyContent: 'center',
alignSelf: 'center',
},

View File

@ -28,7 +28,7 @@ class CommentsView extends PureComponent {
// Component Functions
_handleOnDropdownSelect = () => {};
_keyExtractor = (item, index) => item.permlink;
_keyExtractor = item => item.permlink;
render() {
const {

View File

@ -35,7 +35,6 @@ const renderDropdownRow = (rowData, rowID, highlighted, rowTextStyle, noHighligh
const DropdownButtonView = ({
childIconWrapperStyle,
children,
defaultIndex,
defaultText,
iconStyle,
iconName,

View File

@ -29,6 +29,7 @@ class TagsView extends PureComponent {
renderItem={({ item, index }) => (
<Tag key={index} value={item} isPin={index === 0} onPress={handleOnTagPress} />
)}
keyExtractor={item => item}
/>
</View>
);