zachgibson / react-native-parallax-swiper

Paged Parallax Swiper with Effects
MIT License
623 stars 76 forks source link

Question: Plans to Add Rest of Scroll View Props? #30

Closed Jmeza081 closed 5 years ago

Jmeza081 commented 6 years ago

Thanks again for the awesome library! I was looking into a (bug, but not really) yesterday in which embedding a set of TextInputs in a ParallaxSwiperPage would cause some semi-unexpected behavior on Android:

Adding the prop keyboardShouldPersistTaps={'always'} to your ParallaxSwiper.js's ScrollView fixes the issue. I was wondering if there were still plans to expose the rest of the ScrollView props and making this prop optional, or if you were planning on taking the repo in a different direction?

zachgibson commented 6 years ago

Hey @Jmeza081! Yeah I’m wondering if simply spreading props would work well. I believe so. Totally open to PRs too. 😉

Jmeza081 commented 6 years ago

Gotcha! Just out of curiosity, what is the reasoning behind not adding {...this.props} to the ScrollView to allow the rest of the supplied props to pass through your component? Will it mess with props your Swiper is handling internally? If it will, a simple PR for keyboardShouldPersistTaps will have to suffice when I get around to it.

zachgibson commented 5 years ago

@Jmeza081 I briefly tried this but it broke something else. This is definitely on my list to work on soon.

zachgibson commented 5 years ago

Closing in favor of #33.