Skip to content

The dot indicator does not change, and the next button goes to 2nd screen #141

@Bilal-Abdeen

Description

@Bilal-Abdeen

Thank you for the excellent library.

I have a strange issue! The dot indicator does not change when the user moves between screens, it always shows the 1st dot indicator as the active one! Moreover, the next button always goes to the 2nd screen in the array. Last, the pageIndexCallback does not return anything!

<Onboarding
	pages={[
		{
			backgroundColor: "red",
			image: <Image source={require("../../images/manager.jpg")} />,
			title: "screen 1",
			subtitle: "screen 1",
		},
		{
			backgroundColor: "red",
			image: <Image source={require("../../images/invite.jpg")} />,
			title: "screen 2",
			subtitle: "screen 2",
		},
		{
			backgroundColor: "red",
			image: <Image source={require("../../images/apply.jpg")} />,
			title: "screen 3",
			subtitle: "screen 3",
		},
	]}
	pageIndexCallback={(pageIndex) => console.log("pageIndex:", pageIndex, )} // does NOT work!?
/>)}

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