Commit 9313be06 authored by Fred's avatar Fred

fix error key

parent 7b8de235
...@@ -111,6 +111,7 @@ const BottomNavigation = ({ state, descriptors, navigation }) => { ...@@ -111,6 +111,7 @@ const BottomNavigation = ({ state, descriptors, navigation }) => {
return ( return (
<TouchableOpacity <TouchableOpacity
key={route.name}
accessibilityRole="button" accessibilityRole="button"
accessibilityStates={isFocused ? ['selected'] : []} accessibilityStates={isFocused ? ['selected'] : []}
accessibilityLabel={options.tabBarAccessibilityLabel} accessibilityLabel={options.tabBarAccessibilityLabel}
...@@ -120,7 +121,7 @@ const BottomNavigation = ({ state, descriptors, navigation }) => { ...@@ -120,7 +121,7 @@ const BottomNavigation = ({ state, descriptors, navigation }) => {
style={{ flex: 1, alignItems: 'center', backgroundColor: 'white', borderTopWidth:1, borderTopColor: '#f0f0f0' }} style={{ flex: 1, alignItems: 'center', backgroundColor: 'white', borderTopWidth:1, borderTopColor: '#f0f0f0' }}
> >
<Image key={icon} source={icon} style={{ height: 50, width: 50, tintColor: isFocused ? '#CFB368' : 'gray'}} /> <Image source={icon} style={{ height: 50, width: 50, tintColor: isFocused ? '#CFB368' : 'gray'}} />
</TouchableOpacity> </TouchableOpacity>
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment