Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

how to use LinearGradient for react tab navigator tabs

$
0
0

I have a react tabnavigator which i used it from ReactNavigation(v2) component:

const Tab = createMaterialTopTabNavigator({  Nearest: {    screen: Nearest, navigationOptions: {      tabBarLabel: 'myprofile'    }  },  Recomanded: {    screen: Recomanded, navigationOptions: {      tabBarLabel: 'recomanded'    }  },  Home: {    screen: Hotest, navigationOptions: {      tabBarLabel: 'hotest'    }  },},  {    tabBarOptions: {      labelStyle: {        fontSize: 12,         fontFamily:"IRANSans"      },      tabStyle: {        backgroundColor: '#ef6102',      }    }  });

now i want to use linear gradient for Tabs color but i couldn't find any way to do it!...how its possible ? how can i take the tabs inside this tag:

<LinearGradient  colors={['#EF7D2F', '#C8191A']}>..here..</LinearGradient>

Viewing all articles
Browse latest Browse all 16750

Trending Articles