My team needs a style like this:
But I set tabBarShadowStyle to no effect.
How should tabBarShadowStyle be used ?
I can remove the black line by set tabBarStyle's 'overflow: hidden'.
I can also set shadow by set tabBarStyle.shadowColor.
But when I set the 'overflow: hidden', the shadow also disappeared, the two can only choose one, what should I do?
this is my code:
import React, { Component } from 'react';
import {
Image,
StyleSheet,
Text,
View
} from 'react-native';
import px2pd from './js/utils/px2dp';
import { Navigator } from 'react-native-deprecated-custom-components';
import TabNavigator from 'react-native-tab-navigator';
import Home from './js/page/root/home';
import Tribe from './js/page/root/tribe';
import Event from './js/page/root/event';
import Data from './js/page/root/data';
import Myset from './js/page/root/myset';
My team needs a style like this: But I set tabBarShadowStyle to no effect. How should tabBarShadowStyle be used ? I can remove the black line by set tabBarStyle's 'overflow: hidden'. I can also set shadow by set tabBarStyle.shadowColor. But when I set the 'overflow: hidden', the shadow also disappeared, the two can only choose one, what should I do?
this is my code:
import React, { Component } from 'react'; import { Image, StyleSheet, Text, View } from 'react-native'; import px2pd from './js/utils/px2dp'; import { Navigator } from 'react-native-deprecated-custom-components'; import TabNavigator from 'react-native-tab-navigator'; import Home from './js/page/root/home'; import Tribe from './js/page/root/tribe'; import Event from './js/page/root/event'; import Data from './js/page/root/data'; import Myset from './js/page/root/myset';
type Props = {}; export default class App extends Component {
constructor(props) {
super(props);
this.state = {
selectedTab: 'home',
selectedIndex: 0,
icons: [{
image: require('./js/image_local/ICON/home_unsel.png'),
imageSelected: require('./js/image_local/ICON/home_sel.png')
},{
image: require('./js/image_local/ICON/tribe_unsel.png'),
imageSelected: require('./js/image_local/ICON/tribe_sel.png')
},{
image: require('./js/image_local/ICON/event_unsel.png'),
imageSelected: require('./js/image_local/ICON/event_sel.png')
},{
image: require('./js/image_local/ICON/data_unsel.png'),
imageSelected: require('./js/image_local/ICON/data_sel.png')
},{
image: require('./js/image_local/ICON/myset_unsel.png'),
imageSelected: require('./js/image_local/ICON/myset_sel.png')
}]
}
}
render() {
return (
}
const styles = StyleSheet.create({
});