React Native Navigation Component Route Issue

前端 未结 4 2065
孤独总比滥情好
孤独总比滥情好 2021-02-12 13:44

New react native user here. I\'m running into an issue and I am not sure how to proceed. I was able to get react-navigation running properly and then began receiving an error: \

4条回答
  •  日久生厌
    2021-02-12 13:58

    I think the problem is with home.js since you aren't exporting it. Try this :

    export default class Home extends Component { ... } 
    ^^^^^^^^^^^^^^
    

    Add those or just add

     export default Home; 
    

    at the end of the home.js file

提交回复
热议问题