Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Now throwing "Invariant Violation" #54

Open
jaffamd opened this issue May 7, 2019 · 2 comments
Open

Now throwing "Invariant Violation" #54

jaffamd opened this issue May 7, 2019 · 2 comments

Comments

@jaffamd
Copy link

jaffamd commented May 7, 2019

I tried implementing the code from an example of sideswipe (https://snack.expo.io/@kkemple/sideswipe-example), but kept running into an "Invariant Violation: Element type is invalid" error. I've tried everything I could, but couldn't get rid of it. Looking at the other open issues, it looks like this repo might be incompatible with the latest version of Expo / React Native, as the Snack linked above gets an error as well.

@Ajamuar
Copy link

Ajamuar commented May 15, 2019

I am having the same problem. I implemented the code as mentioned and I keep running into the following error:
Invariant Violation: Invariant Violation: [1,{"type":"value","value":"<<NaN>>","offset":0}] is not usable as a native method argument

@DesignMonkey
Copy link

I had the same issue. Using the example from the Readme file. In my case the error was here:

    const { width } = Dimensions.get('window');
    const contentOffset = (width - CustomComponent.WIDTH) / 2;

CustomComponent.WIDTH was undefined. Maybe because it was a function not React.Component 🤔

But I calculated the Width manually instead, and that solved it for me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants