Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ViewPagerAndroid nested ViewPagerAndroid #14747

Closed
pzw224 opened this issue Jun 27, 2017 · 0 comments
Closed

ViewPagerAndroid nested ViewPagerAndroid #14747

pzw224 opened this issue Jun 27, 2017 · 0 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@pzw224
Copy link

pzw224 commented Jun 27, 2017

**ViewPagerAndroid can't nested ViewPagerAndroid in android **

Description

when ViewPagerAndroid nested ViewPagerAndroid,the child ViewPagerAndroid can't load the initialPage and can't slide
example like:

<ViewPagerAndroid initialPage={0} scrollEnabled={true} style={{ flex: 1 }}>
                    <View style={{ height: 50, width: windowSize.width }}>
                        <Text>it like a scrolltab </Text>
                        <ViewPagerAndroid
                            automaticallyAdjustContentInsets={false}
                            scrollEnabled={true}
                            initialPage={0}
                            onPageSelected={(e) => {

                            }}
                            style={{ height: 100, width: 500, backgroundColor: 'red' }}>
                            <View style={{ backgroundColor: 'blue' }}><Text>it like a swiper</Text></View>
                            <View style={{ backgroundColor: 'yellow' }}><Text>222222</Text></View>
                            <View style={{ backgroundColor: 'green' }}><Text>333333</Text></View>
                        </ViewPagerAndroid>
                    </View>
                    <View style={{ height: 50, width: windowSize.width }}><Text>aaaaa</Text></View>
                    <View style={{ height: 50, width: windowSize.width }}><Text>bbbbb</Text></View>
                    <View style={{ height: 50, width: windowSize.width }}><Text>ccccc</Text></View>
</ViewPagerAndroid>
@hramos hramos closed this as completed Jun 27, 2017
@facebook facebook locked as resolved and limited conversation to collaborators Jun 27, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants