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>