question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue Referencing component created with 'createAnimatedComponent'

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
a9udn9ucommented, Nov 17, 2016

For people searching for solution: #9944

0reactions
facebook-github-botcommented, Nov 14, 2016

@charpeni tells me to close this issue. If you think it should still be opened let us know why.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found