Animated.ScrollView keyboardShouldPersistTaps with Animated.Node<boolean> doesn't work.
See original GitHub issueDescription
when providing an Animated.Node
for keyboardShouldPersistTaps
for a ScrollView doesn’t work.
it’ll always be ‘never’.
for example
<ScrollView
scrollEnabled={cond(x, false, false)}
keyboardShouldPersistTaps={cond(x, 'always', 'always' )}
...>
....
the scroll will be disabled but keyboardShouldPersistTaps
has no effect.
https://snack.expo.io/@aeid/jealous-cheese
expected behavior:
<ScrollView
keyboardShouldPersistTaps={A.Node<'Always'>}..
should behave the same as
<ScrollView
keyboardShouldPersistTaps={'Always'}..
- React: 16.11.0
- React Native: 0.62.2
- React Native Reanimated: ^1.13.0
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (6 by maintainers)
Top Results From Across the Web
react-native-keyboard-aware-scroll-view - npm
A React Native ScrollView component that resizes when the ... scrollToEnd, animated?: bool = true, Scroll to end with or without animation.
Read more >react-native Animated node error - Stack Overflow
I solved this error by turning off native animation drivers for Android. I'm not sure this is the one true answer, but it...
Read more >React.Basic.Native - Pursuit - PureScript
On Android, this is useful for animations and interactions that only modify opacity, rotation, translation, and/or scale: in those cases, the view doesn't...
Read more >https://cdn.jsdelivr.net/npm/@types/react-native@0...
export interface LayoutAnimationStatic { /** Schedules an animation to happen ... Only works with multiline={true} */ scrollEnabled?: boolean | undefined; ...
Read more >https://unpkg.com/@types/react-native@0.42.11/inde...
As always, to obtain a native node handle for a component, you can use * `React. ... export interface LayoutAnimationStatic { /** Schedules...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m recently more focused on the TS rewrite of RNGH and I didn’t have time to check this.
Maybe @zrebcu411 or @piaskowyk have some time to check it?
Closing this in favor of #1526 where the issue related to
keyboardShouldPersistTaps
is discussed as well