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', alignSelf: 'center',
}, },
rightIcon: { rightIcon: {
color: '$iconColor',
justifyContent: 'center', justifyContent: 'center',
alignSelf: 'center', alignSelf: 'center',
}, },

View File

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

View File

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

View File

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