Closed Chenjiujiu closed 1 hour ago
[!TIP] Newer version available: You are on a supported minor version, but it looks like there's a newer patch available - 0.76.2. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.
[!TIP] Newer version available: You are on a supported minor version, but it looks like there's a newer patch available - undefined. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.
Tip
Newer version available: You are on a supported minor version, but it looks like there's a newer patch available - undefined. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.
The reproducible demo is already using the latest version, 0.76.2.
The current version is 0.72.6.
Hey, This issue is actually unrelated to React Native core. Please open this issue against this other repository:
https://github.com/callstack/react-native-pager-view/issues
I'll be closing this but feel free to reopen if the other repo points back to us as a issue in the core of React Native.
Duplicates of #47410
Description
Current behavior
When I upgraded to version 0.76, repeatedly navigating to the login page caused abnormal changes in the page’s UI.
RootStackNavigator
#### `RootStackNavigator`: ```typeScript const RootStack = createNativeStackNavigator();
const RootStackNavigator: React.FC = () => {
return (
);
};
```
BottomTabNavigator
#### `BottomTabNavigator`: ```TypeScript const BottomTabNavigator: React.FC = () => { const navigation = useNavigation();
const handleMePress = (e: any) => {
e.preventDefault();
navigation.navigate('Login', {});
}
return (
);
};
```
LoginTab
#### `LoginTab`: ```TypeScript const LoginTab: React.FC = () => {
return (
console.log(123123)}
>
{'login'}
);
};
```
Environment
Steps to reproduce
Repeatedly clicking on “Me” to enter the login page and then returning, after about a dozen times, causes the button on the login page to behave abnormally.
When I downgraded React Native to version 0.75.4 while keeping other library versions unchanged, the issue disappeared. It works correctly under the following environment.
React Native Version
0.76.1
Affected Platforms
Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/Chenjiujiu/demo002
Screenshots and Videos
https://github.com/user-attachments/assets/c4b5747e-5890-40f4-b117-004be4a3930d