Es funktioniert gut mit Scrollview funktioniert aber nicht mit Animated.ScrollView „undefiniert ist keine Funktion“scrolltoTop nicht in Animated.scrollView Arbeits
<Animated.ScrollView scrollEventThrottle={1} ref="_scrollView">
{content}
</Animated.ScrollView>
<Button title='Button' onPress={() => { this.refs._scrollView.scrollTo(0); }}/>
Haben Sie es getestet mit Animated.ScrollView? Weil es nicht funktioniert. – rendom
Beachten Sie, dass ohne Animated mein Beispiel funktioniert – rendom