Closed ArsalanCsquare closed 4 years ago
Hi @ArsalanCsquare,
could you create a snack with a minimum reproducible code example and format code in the issue? It's hard to pin down issue like that, especially when you use Reanimated with React Native Tabs.
Closing due to no response.
For people who run across this same issue...
In my case i had Reanimated v1.7.1 in a monorepo as a module and v1.9.0 on my local RN repo. Removing Reanimated from my monorepo and only having one instance of Reanimated worked for me.
Description
Hi, I'm constantly getting this error, Animated node with ID {nodeID} already exists, the nodeID in my case is 351.
I have a tab bar component built separately in a repo and is symlinked to one of my projects which is using the components in that repo, anyways, everything worked fine before when I first built this tab bar, using react-navigation v4 and react-navigation-tabs v2.7.0 but recently when I switched to my tabs screen it is constantly crashing with the above error.
Consuming side (where the component is being called)
<TabNavigator TabOne={TabOne} tabOneProps={tabOneProps} tabTwoProps={tabTwoProps} // TODO: SHOW-254 Develop/Complete
Showing Requests
Screen TabTwo={TabTwo} tabOneLabel="My Listings" tabTwoLabel="Showing Requests" />Component code (Tab Navigator)
import React from 'react'; import { View } from 'react-native'; import PropTypes from 'prop-types'; import CommonPropTypes from '../propTypes'; import { createAppContainer } from 'react-navigation'; import { createMaterialTopTabNavigator } from 'react-navigation-tabs'; import { withStyleSheet } from '../../theme'; import styles from './styles';
function TabNavigatorComponent({ styleSheet, theme, TabOne, TabTwo, tabOneProps, tabTwoProps, tabOneLabel, tabTwoLabel, navigationRef, }) { const firstTabIndicator = () => (
}
TabNavigatorComponent.displayName = 'TabNavigatorComponent';
TabNavigatorComponent.propTypes = { // provided through withStyleSheet HOC styleSheet: CommonPropTypes.styleSheet.isRequired, theme: PropTypes.object.isRequired,
};
TabNavigatorComponent.defaultProps = { navigationRef: null, tabOneProps: {}, tabTwoProps: {}, };
export default withStyleSheet(styles)(TabNavigatorComponent);
Package versions