BY
Size: a a a
BY
AN
ДР
Д
http://sitee-app.com/cool_app.html?DB
http://sitee-app\.com/cool_app\.html\?$DB
DB
http://sitee-app\.com/cool_app\.htmlДФ
DB
К
React, { Component } from 'react';
import {View,Text} from 'react-native';
import { createAppContainer } from 'react-navigation';
import { createBottomTabNavigator } from 'react-navigation-tabs';
import { Image } from 'react-native';
import { inject, observer } from 'mobx-react';
import CartBottomIcon from '@components/CartBottomIcon';
import AppStack from './AppStack';
import CatalogScreen from '../containers/CatalogScreen';
import CartScreen from '../views/cart';
@inject('cartStore')
@observer
export default class extends Component {
render() {
let routes = this.props.cartStore.active ?
{
Home: AppStack,
Cart: CartScreen,
Catalog: CatalogScreen
}
: {
Home: AppStack,
Catalog: CatalogScreen
};
let ComponentBar = createAppContainer(createBottomTabNavigator(routes,
{
navigationOptions: ({ navigation }) => ({
tabBarIcon: ({ focused, horizontal, tintColor }) => {
const { routeName } = navigation.state;
navigation.state.routes[navigation.state.index];
let iconName;
if (routeName == 'Home') {
iconName = require('../assets/images/home1.png');
} else if (routeName == 'Catalog') {
iconName = require('../assets/images/catalog1.png');
}
if(routeName == 'Cart') {
return <CartBottomIcon/>;
}
return <Image source={iconName}
style={{tintColor, width: 25, height: 25}}
/>;
},
}),
tabBarOptions: {
showLabel: false,
activeTintColor: 'red',
inactiveTintColor: 'gray',
labelStyle: {
fontSize: 20,
},
style: {
borderTopWidth: 0.5,
borderTopColor: 'red',
padding: 0,
paddingRight : this.props.cartStore.active ? 50 : 0
},
},
}));
return <ComponentBar/>;
}
}DB
React, { Component } from 'react';
import {View,Text} from 'react-native';
import { createAppContainer } from 'react-navigation';
import { createBottomTabNavigator } from 'react-navigation-tabs';
import { Image } from 'react-native';
import { inject, observer } from 'mobx-react';
import CartBottomIcon from '@components/CartBottomIcon';
import AppStack from './AppStack';
import CatalogScreen from '../containers/CatalogScreen';
import CartScreen from '../views/cart';
@inject('cartStore')
@observer
export default class extends Component {
render() {
let routes = this.props.cartStore.active ?
{
Home: AppStack,
Cart: CartScreen,
Catalog: CatalogScreen
}
: {
Home: AppStack,
Catalog: CatalogScreen
};
let ComponentBar = createAppContainer(createBottomTabNavigator(routes,
{
navigationOptions: ({ navigation }) => ({
tabBarIcon: ({ focused, horizontal, tintColor }) => {
const { routeName } = navigation.state;
navigation.state.routes[navigation.state.index];
let iconName;
if (routeName == 'Home') {
iconName = require('../assets/images/home1.png');
} else if (routeName == 'Catalog') {
iconName = require('../assets/images/catalog1.png');
}
if(routeName == 'Cart') {
return <CartBottomIcon/>;
}
return <Image source={iconName}
style={{tintColor, width: 25, height: 25}}
/>;
},
}),
tabBarOptions: {
showLabel: false,
activeTintColor: 'red',
inactiveTintColor: 'gray',
labelStyle: {
fontSize: 20,
},
style: {
borderTopWidth: 0.5,
borderTopColor: 'red',
padding: 0,
paddingRight : this.props.cartStore.active ? 50 : 0
},
},
}));
return <ComponentBar/>;
}
}require('../assets/images/home1.png');require('../assets/images/home1.png');(routeName == 'Home') {
iconName = HomeIcon;
} else if (routeName == 'Catalog') {
iconName = CatalogIcon
}AN
react-native-geolocation-service? Cannot read property 'startObserving' of undefinedК
require('../assets/images/home1.png');require('../assets/images/home1.png');(routeName == 'Home') {
iconName = HomeIcon;
} else if (routeName == 'Catalog') {
iconName = CatalogIcon
}DB
require('../assets/images/home1.png');require('../assets/images/home1.png');К
require('../assets/images/home1.png');require('../assets/images/home1.png');К
require('../assets/images/home1.png');require('../assets/images/home1.png');tabBarIcon в принципе не отображает ничего, даже если без условия return делатьД
Associated Domains. Как с помощью fastlane сделать новые сертификаты?Д
V