elicwhite/react-native-mask-loader

Element type is invalid Error

Closed this issue · 1 comments

I almost sure it's something with my setup since no one else is experiencing this. But after adding th package via yarn and using the correct imports:

import Loader from "react-native-mask-loader";

 render() {

    return (
      <Loader
        isLoaded={true}
        imageSource={require("../assets/twitter.png")}
        backgroundStyle={{ backgroundColor: blue }}>
        <LandingPage
          appVersion={this.state.codePushVersion}
          setAppView={this._setAppView.bind(this)}
        />
      </Loader>
    );
  }

However i get this error:

simulator screen shot - iphone 7 plus - 2018-05-15 at 14 29 47

Issue disappeared when upgrading to 0.55.4 from 0.44.0