leecade / leecade/react-native-swiper
Swiper not show on Android Devices but iOS Devices it's work fine
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.5k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
<Swiper
height={190}
showsButtons={true}
removeClippedSubviews={false}>
<Text> test text</Text>
<Text>test text</Text>
<Text>test text</Text>
<Text>test text</Text>
</Swiper>
I can't use it for android but iOS it's work
And this solution from Collaborator it's " not work "
constructor(props) {
super(props);
this.state = {
width: '99%',
};
}
componentWillMount() {
setTimeout(() => {
this.setState({
width: '100%'
});
}, 500);
}
render() {
console.log(' about to render swiper');
const slides = this.props.dataList.map(this.renderView.bind(this));
return (
<Swiper
width={this.state.width}
dotColor={LIGHT_GREY_3}
activeDotColor={YELLOW}
containerStyle={this.props.style}
style={styles.scrollStyle}
>
{ slides }
</Swiper>
);
}
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 provided Swiper example on an Android device and compare its behavior with iOS. Investigate the Swiper component's Android rendering and layout path; the issue is done when the example displays its slides on Android without relying on the reported timeout workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100