question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

did not work on RN 0.61.5-Invariant Violation

See original GitHub issue

Which OS ?

Android

Version

Which versions are you using:

  • react-native-swiper v1.5.14
  • react-native v0.61.5
import * as React from 'react';
import {StyleSheet, Text, View} from "react-native";
import Swiper from 'react-native-swiper'

export class SwiperComponent extends React.Component {

  render() {
    return (
      <Swiper>
        <View>
          <Text>sss</Text>
        </View>
        <View>
          <Text>aaa</Text>
        </View>
      </Swiper>
    );
  }
}

error: Invariant Violation: Element type is invalid: expected a string(for built-in components) or a class/function(for composite components) but got:undefined.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:8

github_iconTop GitHub Comments

1reaction
leopacciullicommented, Jan 9, 2020

The same with me.

0reactions
dongdyangcommented, May 26, 2020

same here

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invariant Violation: Tried to register two views with the same ...
A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle...
Read more >
API | React Native Testing Library - Open Source
This experimental option allows you to replicate React Native behavior of throwing Invariant Violation: Text strings must be rendered within a <Text> component ......
Read more >
appregistry.registercomponent wasn't called - You.com
Invariant Violation: "RestApp" has not been registered. This can happen if: Metro (the local dev server) is run from the wrong folder. Check...
Read more >
Active questions tagged react-native+ios - Stack Overflow
What is the problem with my code? Why is it generating such a cryptic error? And why does my IOS device not crash...
Read more >
Troubleshooting common React Native bugs - LogRocket Blog
Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found