You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
I tried to implement the logic below, I want to make the user go back to the previous screen when clicking on the backButton, but the event is not triggered!
My code:
exportconstVideoScreen=function(props: VideoScreenProps){constnavigation=useNavigation()constvideoRef=React.useRef<VideoPlayerRef>();constvideoHeight=useSharedValue(width*(9/16));constisFullScreen=useSharedValue(false);const[paused,setPaused]=useState(false);return(<SafeAreaProvider><GestureHandlerRootView><VideoPlayerref={videoRef}navigation={navigation}theme={{minimumTrackTintColor: Colors.primary,bubbleBackgroundColor: Colors.primary,}}source={{uri: 'my url goes here!'}}onTapBack={()=>{console.log('onTapBack')// <--------- does not print on the console when clicking on the backButtonAlert.alert('onTapBack');}}headerBarTitle={'Darling in the Franxx'}onPausedChange={setPaused}videoHeight={videoHeight}paused={paused}isFullScreen={isFullScreen}/></GestureHandlerRootView></SafeAreaProvider>);}
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I tried to implement the logic below, I want to make the user go back to the previous screen when clicking on the backButton, but the event is not triggered!
My code:
The text was updated successfully, but these errors were encountered: