Change selected tab background color - tabview ios


#1

is this possible to change selected tab background color of tabview (ios) in natievscript?
or font size of tab titles in ios ?


#2

From this GitHub issue:

Use tabBackgroundColor to set the primary color of your tabs and use tabTextColor to set the primary text color of your tabs.

There are also selectedTabTextColor to set the text color of the selected tab.

<TabView id="tabViewContainer" tabBackgroundColor="red" tabTextColor="white">
    <TabView.items>
        <TabViewItem title="Tab 1" >
            <TabViewItem.view>
                <Label text="This is Label in Tab 1" />
            </TabViewItem.view>
        </TabViewItem>
        <TabViewItem title="Tab 2">
            <TabViewItem.view>
                <Label text="This is Label in Tab 2" />
            </TabViewItem.view>
        </TabViewItem>
    </TabView.items>
</TabView>

#3

thanks but, what i’m looking for is selectedTabBackground color not the both tabs