Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How I can set custom dot? #256

Open
rehan-confiz opened this issue Jan 20, 2022 · 2 comments
Open

How I can set custom dot? #256

rehan-confiz opened this issue Jan 20, 2022 · 2 comments

Comments

@rehan-confiz
Copy link

Hi,
I want to set the custom image instead of plain dot on page active and in-active state.

@wicfasho
Copy link

A Quick Example


<AppIntroSlider
        .......
        activeDotStyle = {styles.activePaginationDots}
        dotStyle = {styles.paginationDots}
        .......
/>

const styles = StyleSheet.create({
  paginationDots: {
      width: 10,
      height: 3,
      borderRadius: 5,
      marginRight: 3,
      backgroundColor: 'red'
    },

  activePaginationDots: {
    width: 20,
    height: 3,
    borderRadius: 5,
    marginRight: 3,
    backgroundColor: 'blue'
  },
})

@saurabhsaneja
Copy link

@wicfasho thanks! it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants