forked from vergnet/application-amicale
Fixed missing key warning
This commit is contained in:
parent
8b4348a6a2
commit
d0ced5d1e6
1 changed files with 4 additions and 1 deletions
|
@ -77,12 +77,15 @@ class CustomTabBar extends React.Component<Props> {
|
||||||
label={label}
|
label={label}
|
||||||
focused={isFocused}
|
focused={isFocused}
|
||||||
extraData={state.index > index}
|
extraData={state.index > index}
|
||||||
|
key={route.key}
|
||||||
/>
|
/>
|
||||||
} else
|
} else
|
||||||
return <TabHomeIcon
|
return <TabHomeIcon
|
||||||
onPress={onPress}
|
onPress={onPress}
|
||||||
onLongPress={onLongPress}
|
onLongPress={onLongPress}
|
||||||
focused={isFocused}/>
|
focused={isFocused}
|
||||||
|
key={route.key}
|
||||||
|
/>
|
||||||
})}
|
})}
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue