Skip to content

Can not autoLayout #422

@genglei01

Description

@genglei01

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',
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions