react-navigation / react-navigation

Routing and navigation for your React Native apps
https://reactnavigation.org
23.3k stars 4.97k forks source link

RemoveEventListener error in react-native-navigation@4 #11939

Closed gkasireddy202 closed 1 month ago

gkasireddy202 commented 1 month ago

Current behavior

I have used react-navigation: 4.4.4 in my project for the last 5 years. We maintained the navigation structure in 4.4.4 because of more screens. I upgraded my project to 0.73.2 and got this error. Click on tab screen and go back to previous screen getting this error. _reactNative.Linking.removeEventListener is not a function (it is undefined)

Expected behavior

I expect this error will be resolved. Screen A.js

import React, { Component } from 'react'; import { View, Button, StyleSheet } from 'react-native';

class ScreenA extends Component { constructor(props) { super(props);

}

// Method to handle button press handlePress = () => { // Your logic here this.props.navigation.navigate("ScreenB"); };

render() { return (

github-actions[bot] commented 1 month ago

Hey @gkasireddy202! Thanks for opening the issue. It seems that the issue doesn't contain a link to a repro.

The best way to get attention to your issue is to provide an easy way for a developer to reproduce the issue.

You can provide a repro using any of the following:

github-actions[bot] commented 1 month ago

Couldn't find version numbers for the following packages in the issue:

Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3.

gkasireddy202 commented 1 month ago

"react-navigation": "^4.4.4".I added a sample code for this error. Getting the error in the react-native-navigation package when I go back from the tab screen. this error occurred in my production environment. We have used this navigation for the last 5 years. We have integrated the navigation structure in v4 for more than 25 screens. Please look at this issue.

satya164 commented 1 month ago

React Navigation 4 is no longer supported. Please update to the latest stable version. You've had 4 years to upgrade.

github-actions[bot] commented 1 month ago

Hey! This issue is closed and isn't watched by the core team. You are welcome to discuss the issue with others in this thread, but if you think this issue is still valid and needs to be tracked, please open a new issue with a repro.

gkasireddy202 commented 1 month ago

how to open issue with a repo?

gkasireddy202 commented 1 month ago

React Navigation 4 is no longer supported. Please update to the latest stable version. You've had 4 years to upgrade.

Can you please help to fix this issue? We are upgrading my project to 0.73.2 for the iOS Privacy manifest policy. We have many screens having react-native-navigation@4 navigation structure in my project. Now it is difficult to upgrade.

gkasireddy202 commented 1 month ago

@satya164 - Please any update on this?