Jacse / react-native-app-intro-slider

Simple and configurable app introduction slider for react native
MIT License
1.65k stars 330 forks source link

chore: add new prop buttonTextStyle to style default button text #264

Open manuelbieh opened 1 year ago

manuelbieh commented 1 year ago

Hey. First of all, great package! I was able to build a really nice looking onboarding screen for my app in no time. The issue I had, however, was that I am using a very light gray as background color so the default white button text was hardly visible. Since I did not want to define and style my own button component for all 4 button types using the renderXyzButtonprop, I added a new and optional buttonTextStyle prop.

In my case it allowed me to simply change the text color with a very simple:

<AppIntroSlider buttonTextStyle={{ color: 'black' }} [...] />

Would love to see it merged but I'm open to discussing alternative approaches or any changes you'd like to see 🙂

JacobDel commented 10 months ago

@Jacse can you merge this small but important MR?