Warning: Cannot update a component (`Routes`) while rendering a different component (`ForwardRef`)

Viewed 26

How can i fix this error ERROR Warning: Cannot update a component (`Routes`) while rendering a different component (`ForwardRef`). To locate the bad setState() call inside `ForwardRef`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render you all can also see my app.js code below and what is the solution of the error pls tell how to fix

My app.js code

import React from 'react'
import { View, Text, StyleSheet} from 'react-native';
import { Provider } from 'react-redux';
import Routes from './src/Navigations/Routes'
import store from './src/redux/store';

function App() {
  return (
    <Provider store={store}>
    <View style={styles.container}>
      <Routes />
    </View>
  </Provider>
  )
};

const styles = StyleSheet.create({
    container: {
        flex: 1,
       
    },
});


export default App
0 Answers
Related