did not work on RN 0.61.5-Invariant Violation
See original GitHub issueWhich 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:
- Created 4 years ago
- Reactions:2
- Comments:8
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The same with me.
same here