react-native-material-design icon indicating copy to clipboard operation
react-native-material-design copied to clipboard

Element type is invalid: expected a string or a class/function but got undefined.

Open FezVrasta opened this issue 7 years ago • 3 comments

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?

FezVrasta avatar Oct 23 '16 16:10 FezVrasta

Oh... seems like it's commented out

https://github.com/react-native-material-design/react-native-material-design/blob/master/lib/index.js#L11

FezVrasta avatar Oct 23 '16 17:10 FezVrasta

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 .

Ehesp avatar Oct 25 '16 18:10 Ehesp

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

exos avatar Aug 15 '17 06:08 exos