The development server returned response error code: 500 in react native

前端 未结 16 1228
夕颜
夕颜 2021-02-05 01:29

I am using react-native framework for developing my android app. I want to use react-native-material-design library for making Toolbar wit

16条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-05 02:07

    It could be that the name of the JavaScript files that you imported is same with any React predefined libraries/components. For example, importing View.js from folder app/components that you have created.

    import View from './app/components/View'
    

    The above statement will produce the error. So, by changing the name of file to Interface.js

    import Interface from './app/components/Interface'
    

    Now, the code can run well

提交回复
热议问题