|
|
|
|
9
|
import com.reactnativenavigation.parse.params.Number;
|
9
|
import com.reactnativenavigation.parse.params.Number;
|
10
|
import com.reactnativenavigation.utils.Task;
|
10
|
import com.reactnativenavigation.utils.Task;
|
11
|
import com.reactnativenavigation.utils.ViewUtils;
|
11
|
import com.reactnativenavigation.utils.ViewUtils;
|
12
|
-import com.reactnativenavigation.views.toptabs.TopTabs;
|
|
|
13
|
|
12
|
|
14
|
class TopTabsStyleHelper {
|
13
|
class TopTabsStyleHelper {
|
15
|
private TopTabs topTabs;
|
14
|
private TopTabs topTabs;
|
|
|
|
|
31
|
int tabTextColor = originalColors != null ? originalColors.getColorForState(topTabs.getDefaultTabColors(), -1) : -1;
|
30
|
int tabTextColor = originalColors != null ? originalColors.getColorForState(topTabs.getDefaultTabColors(), -1) : -1;
|
32
|
|
31
|
|
33
|
if (selected.hasValue()) {
|
32
|
if (selected.hasValue()) {
|
34
|
- tabTextColor = selected.get();
|
|
|
|
|
33
|
+ selectedTabColor = selected.get();
|
35
|
}
|
34
|
}
|
36
|
|
35
|
|
37
|
if (unselected.hasValue()) {
|
36
|
if (unselected.hasValue()) {
|
38
|
- selectedTabColor = unselected.get();
|
|
|
|
|
37
|
+ tabTextColor = unselected.get();
|
39
|
}
|
38
|
}
|
40
|
|
39
|
|
41
|
topTabs.setTabTextColors(tabTextColor, selectedTabColor);
|
40
|
topTabs.setTabTextColors(tabTextColor, selectedTabColor);
|