I am using react-native
framework for developing my android app. I want to use react-native-material-design
library for making Toolbar
wit
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