Open zangp opened 4 years ago
The same with me.
Facing the same issue.
Invariant Violation: Element type is invalid: expected a string(for built-in components) or a class/function(for composite components) but got:undefined.
check the render method of _default
The code is as follow
<Swiper horizontal={true} autoplay={true} style={styles.wrapper} >
<View style={styles.slide1}>
<View style={styles.scrollBarHeader}>
<Text style={styles.text}>
Schedule A Pick-Up
</Text>
</View>
<View style={styles.scrollBarBody}>
<View style={styles.sliderImageContainer}>
<Image source={require('../src/truck.png')} style={styles.sliderImageA} />
</View>
</View>
</View>
<View style={styles.slide2}>
<View style={styles.scrollBarHeader}>
<Text style={styles.text}>
Refer A Friend
</Text>
</View>
<View style={styles.scrollBarBody}>
<View style={styles.sliderImageContainer}>
<Image source={require('../src/friends.png')} style={styles.sliderImageB} />
</View>
</View>
</View>
</Swiper>
As soon as i delete the above code, my app works properly react-native v0.62.0-rc.0 react-native-swiper v1.5.14
Use the release candidate @ArrayZoneYour is there a resong the RC have been put on hold for so long? It worked for me, in the small use case I have.
+1
Hi, same issue with latest RC, did anyone get it working?
Thanks,
Théo
I could be wrong but wanted to mention there are a few nightly builds on npm that have worked for me with only minor, sometimes visual glitches. I need a nightly to avoid an android crash in my app. This nightly could have evolved into the rc, I'm not entirely sure.
same here
Which OS ?
Android
Version
Which versions are you using:
error: Invariant Violation: Element type is invalid: expected a string(for built-in components) or a class/function(for composite components) but got:undefined.