TypeError: onboardingRef.current.goToPage is not a function. (In 'onboardingRef.current.goToPage(0, true)', 'onboardingRef.current.goToPage' is undefined)
alexander01202 opened this issue · comments
Alexander commented
I am trying to go to the previous page programmatically but everytime I get this error.
<TouchableWithoutFeedback onPress={() => onboardingRef.current.goToPage(0, true)}> <View style={styles.backButton}> <AntDesign name="arrowleft" style={{ top:Dimensions.get('window').height < 596 ? 30 : 0,shadowColor:'black' }} size={24} color="black" /> </View> </TouchableWithoutFeedback>
This is my code. Any ideas ??
Johannes Filter commented
It looks like a type error. You can disable type checking for a file be adding the following to it's start:
// @ts-nocheck