leecade / leecade/react-native-swiper
Images not loading on Android
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.5k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
The library works perfectly on iOS, but a Swiper of Images on the Android version won't display its images. The code:
<Swiper showsButtons={false} style={{}} loop={true} height={screenWidth} width={screenWidth}
dot={<View style={{backgroundColor: 'rgba(255,255,255,.7)', width: 5, height: 5, borderRadius: 4, marginLeft: 3, marginRight: 3, marginTop: 3, marginBottom: 3}} />}
activeDot={<View style={{backgroundColor: '#49D2FF', width: 8, height: 8, borderRadius: 4, marginLeft: 3, marginRight: 3, marginTop: 3, marginBottom: 3}} />}
paginationStyle={{bottom: 10,}} >
{finalPhotos.map((item, key) => {
return (
<Image key={key} style={{flex:1,width:screenWidth,height:screenWidth,}} source={key === 0 ? (item == "none" ? require("./img/missing-pic-icon.png") : {uri:item}) : {uri:item.image}} />
);
})}
</Swiper>
Other details to note:
-Once again, there are no issues on iOS
-The swiper is contained in a View that's contained in another Swiper
-The finalPhotos array is made before returning the overall render function
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 Android failure with the provided nested Swiper, Image mapping, and finalPhotos data. Compare the Android and iOS rendering behavior; done when images display correctly in the reported Swiper configuration on Android without regressing iOS.
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