Я слежу за кодом, создающим CreateBottomTabNavigation с использованием response-native-элементов для настройки значков.
const AppStack = createBottomTabNavigator(
{
QrCode: { screen: QrCodeScreen },
Profile: { screen: ProfileScreen }
},
{
navigationOptions: ({navigation}) => ({
tabBarIcon: ({focused, horizontal, tinitColor}) => {
const { routeName } = navigation.state;
let iconName;
if (routeName == 'QrCode') {
iconName = 'qrcode-scan';
} else if (routeName == 'Profile') {
iconName = 'face';
}
if (!focused)
return <Icon type='ionicon' name={iconName} color='#517fa4'/>
else
return <Icon type='ionicon' reverse name={iconName} color='#517fa4'/>
// You can return any component that you like here! We usually use an
// icon component from react-native-vector-icons
}
}),
tabBarOptions: {
activeTintColor: 'tomato',
inactiveBackgroundColor: 'gray'
}
});
Это дает мне ошибку ![enter image description here](https://i.stack.imgur.com/PIZek.jpg)
Что-то не так с пакетом ..