-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
InteractionManager is not working #22982
Comments
InteractionManager is working on the latest React Native version and in this snack https://snack.expo.io/@bartolkaruza/MjI5OD We've tested this on the current expo version, RN 0.57 and on the latest RN version 0.59.1 |
sorry for opening this issue. i have a similar problem on this topic. it seems this is the code : componentDidMount(){
InteractionManager.runAfterInteractions(() => {
// this doesn't work !!!
this.scrollView.current.getNode().scrollTo({ y: 70 0, animated: false });
});
} and here is the actual component tree <Animated.ScrollView
bounces={false}
ref={this.scrollView}
style={StyleSheet.absoluteFill}
showsVerticalScrollIndicator={false}
scrollEventThrottle={16}
onScroll={Animated.event(
[{ nativeEvent: { contentOffset: { y: this.scrollY } } }],
{ useNativeDriver: true }
)}
>
{someLongComponent}
</Animated.ScrollView> output of
any idea why? Alternative Solution:i had to wrap my code inside a |
Environment
Description
Hi guys, as the title suggests, my code doesn't run when wrapped inside
InteractionManager.runAfterInteractions
. This is happening inAndroid
but not sure aboutios
e.g.
Similar issue is happening in other components where I wrapped few remote request to be dispatched inside
InteractionManager
but they do not execute at allThe text was updated successfully, but these errors were encountered: