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

keyboardShouldPersistTaps={true} #48

Open
arunkumarrmrj opened this issue Mar 10, 2017 · 6 comments
Open

keyboardShouldPersistTaps={true} #48

arunkumarrmrj opened this issue Mar 10, 2017 · 6 comments

Comments

@arunkumarrmrj
Copy link

arunkumarrmrj commented Mar 10, 2017

Issue Description

keyboardshouldpersisttaps issue

Steps to Reproduce / Code Snippets

Load a basic app with react-native-modal-picker and react-native 0.42

Expected Results

no warning

Additional Information

React Native version: ^0.42.0
react-native-modal-picker version: ^0.0.16
Platform(s) (iOS, Android, or both?): iOS

@xchau
Copy link

xchau commented Mar 14, 2017

Not an ideal solution but I rolled back RN to v.0.39.2.

@eiosca
Copy link

eiosca commented Mar 23, 2017

It's just a warning about function deprecated prop. I create a PR for that. #49

@jawinn
Copy link

jawinn commented Mar 29, 2017

It would be nice to get this rolled into the code, to remove the warning for those of us on React Native 0.42.

Does this deprecated prop currently cause any issues? True and false are still listed on the docs, but are listed as deprecated:
http://facebook.github.io/react-native/releases/0.42/docs/scrollview.html#keyboardshouldpersisttaps

@arturnista
Copy link

@jawinn Besides a Warning, no issues

@eubotas
Copy link

eubotas commented Apr 27, 2017

change the index.js in react-native-modal-picker line 134 :
ScrollView keyboardShouldPersistTaps="always"

@peacechen
Copy link

This RN deprecation was done quite badly IMHO. If keyboardShouldPersistTaps is changed from a bool to a string, it will resolve the warning in RN 0.4x. However that change will break RN 0.3x. RN should have supported both by internally checking the type and act accordingly.

The app code will now have to detect which version of RN is running and pass different values.

bdelville pushed a commit to bdelville/react-native-modal-picker that referenced this issue Mar 8, 2018
* add passThruProps prop for container View and options' TouchableOpacity.
* may be used to pass through testId or any desired custom prop.
* update README props section.
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

7 participants