Issue Referencing component created with 'createAnimatedComponent'
See original GitHub issueI have wrapped a scrollview in the animated component, and whenever I try to reference scrollview to, let’s say, scroll to the top, it is not defined. This works when the component is not wrapped.
For reference, here’s my code
<AnimatedScrollView
onLayout={() => this.scrollView.scrollTo({y: 20, animated: false})}
ref={(ref) => this.scrollView = ref}
style={{flex: 1,}}
keyboardDismissMode='on-drag'
directionalLockEnabled={true}
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
javascript - How does Animated.Component ...
animatable components can be animated. View, Text, and Image are already provided, and you can create custom ones with ...
Read more >Entering Animations | React Native Reanimated
Layout Animations are here to address the problem and help you animate an appearance ... AnimatedComponent - component created by createAnimatedComponent or ...
Read more >Usage | FlashList
You can try out FlashList by changing the component name and adding the ... FlashList props and should be used as a primary...
Read more >huds0n/animations
Status GitHub Issues GitHub Pull Requests License ... Create Animated Component; Use Native Driver; Attach Animations. Reference.
Read more >Animations
Animated exports six animatable component types: View , Text , Image , ScrollView , FlatList and SectionList , but you can also create...
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 Free
Top 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
For people searching for solution: #9944
@charpeni tells me to close this issue. If you think it should still be opened let us know why.