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

Can not autoLayout #422

Open
genglei01 opened this issue May 24, 2017 · 1 comment
Open

Can not autoLayout #422

genglei01 opened this issue May 24, 2017 · 1 comment

Comments

@genglei01
Copy link

genglei01 commented May 24, 2017

I used swiper as the following code, and can not autoLayout when changed orientation

<View style={styles.container}>
                <View  style={{flex:1,alignItems:'flex-start'}}>
                    <Swiper>
                        {
                            this.props.navigation.state.params.data.images.map((img)=>{
                                return <Image source={img} style={{ flex:1, resizeMode:'contain', alignSelf:'center'}} key={img}/>
                            })
                        }
                    </Swiper>
                </View>
                <View style={styles.button_container}>
                    
                </View>
            </View>


 container: {
        flex: 1,
        flexDirection:'column'
    },
button_container: {
        flex: 0.1,
        flexDirection: 'row',
        alignItems: 'flex-start',
        justifyContent: 'space-around',
    }
@Johan-dutoit
Copy link

Johan-dutoit commented May 24, 2017

Facing the same issue, more thumbsup can be found here: #371

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants