zbtang/React-Native-ViewPager

ViewPager doesn't show in Android (Join with Tab View)

shiroze opened this issue · 0 comments

When use rn-viewpager my content in viewpager is not loaded

<Animated.View style={{flex: 1}} >
    <View>
        {Platform.OS === 'ios' && <View style={styles.statusBar} />}
        <View style={styles.toolbarContainer} >
            <Text style={styles.titleTxt} >mNews</Text>
            <TouchableOpacity style={styles.buttonSetting} onPress={() => this.props.navigator.push(SettingPage)} >
                <Image style={styles.backImg} source={require('./imgs/settings.png')} />
            </TouchableOpacity>
        </View>
    </View>
    <IndicatorViewPager
        style={{flex: 1, flexDirection: 'column-reverse'}}
        indicator={this._renderTitleIndicator()}
        onPageScroll={this._onPageScroll.bind(this)}
    >
        {Test1PagerView()}
        {Test2PagerView()}
        {Test3PagerView()}
        {Test4PagerView()}
        {Test5PagerView()}
        {Test6PagerView()}
        {Test7PagerView()}
        {Test8PagerView()}
    </IndicatorViewPager>
</Animated.View>

This problem is occured on android when I'm trying open using react-native-tab-view...