Closed
Description
export default function MyViewPager({ pagerItems }) {
return (
<View style={{ flex: 1 }}>
<PagerView style={{ flex: 1 }} initialPage={0}>
{pagerItems.map((item, index) => (
<View style={{ justifyContent: 'center', alignItems: 'center' }} key={index + 1 + ""}>
<Image source={{ uri: item }} style={{ width: 400, height: 400 }} />
</View>
))}
</PagerView>
</View>
);
}
I've used the above component to render the PagerView and it rendered on both platforms but navigating to the next page by swiping left worked on Android but not on iOS.
I'm using the expo to create the project.
Ref npx create-expo-app <Project name>
Metadata
Metadata
Assignees
Labels
No labels