leecade / leecade/react-native-swiper
Can not autoLayout
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.5k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
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',
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the supplied Swiper example in a React Native app and change the device orientation. Trace the layout behavior during that change; done means the Swiper and surrounding views automatically resize and reposition correctly in both orientations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100