react-native-scrollable-tab-view icon indicating copy to clipboard operation
react-native-scrollable-tab-view copied to clipboard

if initialPage value not default , the content will not show?

Open tinylpc opened this issue 9 years ago • 11 comments

tinylpc avatar Jan 09 '17 03:01 tinylpc

Do you mean your custom tab bar?

skv-headless avatar Jan 09 '17 06:01 skv-headless

<ScrollableTabView initialPage={0} tabBarUnderlineStyle={{backgroundColor: '#11cab0'}}
                               tabBarActiveTextColor="#991cbf" tabBarInactiveTextColor="#11cfa5">
         <Text tabLabel="React" style={{fontSize: 30}}>1111</Text>
         <Text tabLabel="Flow" style={{fontSize: 40}}>222222</Text>
         <Text tabLabel="Jest" style={{fontSize: 50}}>333333</Text>
</ScrollableTabView>

when the initialPage's value is 1,the Text value 222222 will not show。

tinylpc avatar Jan 09 '17 06:01 tinylpc

android?

skv-headless avatar Jan 09 '17 06:01 skv-headless

yes。

tinylpc avatar Jan 09 '17 06:01 tinylpc

Try to install from master if it doesn't work there is issue for that.

skv-headless avatar Jan 09 '17 06:01 skv-headless

Installing from master solved this for me. Is there a chance you can tag it, @skv-headless ?

tioback avatar Jan 12 '17 23:01 tioback

Same issue~ what is the meaning of "install from master"?

Calvin92 avatar Jan 19 '17 07:01 Calvin92

@Calvin92, replace your react-native-scrollable-tab-view dependency in your package.json for the following:

"react-native-scrollable-tab-view": "git+https://github.com/brentvatne/react-native-scrollable-tab-view.git#50145bf"

tioback avatar Jan 19 '17 22:01 tioback

Is https://github.com/skv-headless/react-native-scrollable-tab-view/pull/534 solving this? If so, it would be cool to have it tagged on npm :)

antoinerousseau avatar Feb 02 '17 11:02 antoinerousseau

This bug happens on Android for me but not on iOS, fyi.

antoinerousseau avatar Feb 02 '17 11:02 antoinerousseau

And yes, npm i --save react-native-scrollable-tab-view@skv-headless/react-native-scrollable-tab-view#2d8213fdoes fix it.

antoinerousseau avatar Feb 02 '17 11:02 antoinerousseau