Skip to content

Event handlers do not work with custom buttons #255

@bamoha

Description

@bamoha

This is a nice project, but whenever I place a custom render button for skip, next and done, the event to skip or go to the next slide stops working.

const renderTexts = (val) => {
        return (
            <Button variant="unstyled" color="amber.500">{val}</Button>
        )
    }

<AppIntroSlider
      data={slides}
      renderItem={RenderItem}
      onSkip={onSkip}
      onDone={onSkip}
      renderSkipButton={() => renderTexts('Skip')}
      renderDoneButton={() => renderTexts('Done')}
      renderNextButton={() => renderTexts('Next')}
      showSkipButton={true}
      dotStyle={{ backgroundColor: customTheme["color-black"] }}
  />

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