React Native - Nothing was returned from render

前端 未结 2 1930
[愿得一人]
[愿得一人] 2021-01-19 22:22

My application is stored in /src/index.js but i also have a /App.js and a /index.js.

I don\'t know the difference between these and i think thats the reason im getti

2条回答
  •  隐瞒了意图╮
    2021-01-19 22:39

    You forgot to return the components

    const App = ({ dispatch, nav }) => {
        return(
            
        )
    };
    
    
    export default () => {
        return(
            
                
            
        )
    }
    

提交回复
热议问题