react-native-material-design
react-native-material-design copied to clipboard
Element type is invalid: expected a string or a class/function but got undefined.
This is my super simple app:
function App() {
return (
<View>
<List
primaryText="Foo"
/>
</View>
);
}
Without List
, it works, when I use List
I get the error in the title. What's wrong?
Oh... seems like it's commented out
https://github.com/react-native-material-design/react-native-material-design/blob/master/lib/index.js#L11
List isn't complete yet. It's returning an invalid component hence the error.
On 23 Oct 2016 5:48 pm, "Federico Zivolo" [email protected] wrote:
This is my super simple app:
function App() { return ( <View> <List primaryText="Foo" /> </View> ); }
Without List, it works, when I use List I get the error in the title. What's wrong?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/react-native-material-design/react-native-material-design/issues/131, or mute the thread https://github.com/notifications/unsubscribe-auth/AAzZXsEWiTVebKjqaqtZKlJv2wLkkhWuks5q24_vgaJpZM4KeLgt .
Why is commented?
https://github.com/react-native-material-design/react-native-material-design/blob/631ce260b8405a4f033cfb94a8ce19f804ea2582/lib/index.js#L11
It's means the demo app don't work