Which versions are you using:
error:Cannot add a child that doesn't have YogaNode to a parent without a measure function

Faced the same issue:
Next code throws the error:
<Swiper>
{slides.map(slide => <SwipeView key={slide.id} title={slide.header} text={slide.text} />)}
</Swiper>
And <SwipeView />:
const SwipeView = ({ title, text }) => (
<View>
<Image />
<View>
<Text>{title}</Text>
<Text>{text}</Text>
</View>
</View>
);
But when I changed the prop name from 'title' to some other name it works fine.
For example:
<Swiper>
{slides.map(slide => <SwipeView key={slide.id} header={slide.header} text={slide.text} />)}
</Swiper>
And <SwiperView />:
const SwipeView = ({ header, text }) => (
<View>
<Image />
<View>
<Text>{header}</Text>
<Text>{text}</Text>
</View>
</View>
);
I guess this problem is more about RN rather than Swiper. Hope something similar will help you.
faced the same issue.
I guess it has to do with "react-native": "0.49.3" version.
Same issue
This happens to me as well and, as OP noticed, my child node was receiving a title prop.
Any progress on this guys?
Just downgraded to lower version of RN it works
On 15 Nov 2017 4:41 a.m., "Christian Dela Peña" notifications@github.com
wrote:
Any progress on this guys?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/leecade/react-native-swiper/issues/618#issuecomment-344338316,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALMPfOpQubXdJWSLY3Oy4zpUePjcZ71lks5s2dDGgaJpZM4P_M7V
.
@SergeySivchenko I changed the prop name from 'title' to some other name it works fine. thank you
I wasted more than a day on this and found no useful solution anywhere.
I got this error because I had put comment inside a component.
On removing that comment the app did run for me.
Thanks a lot RoshanSalian. That was my problem too.
RoshanSalian - you saved me from a day of brutality... I would never have guessed that and have so much to do today. Thank you!
I've got this red screen when I didn't include my Input component where it was needed.
I met this problem too. My problem is that I have a illegal string in a component. It's like this:
<ListItem>
{` `}
<Left>
<Text>Hello Wrold</Text>
</Left>
</ListItem>
By removing it, everything works fine.
Thanks a lot #RoshanSalian
Watch out ! Even a single " ; " placed at the end of a JSX tag would cause the error.. hope they fix it asap
@RoshanSalian savior #respect
Thank you @RoshanSalian
@ropaillet Thanks dude ! Lost, like half an hour just because of a small ";"... !
This is also caused by using title as string on a children, see https://github.com/leecade/react-native-swiper/issues/799 for more details
Most helpful comment
I wasted more than a day on this and found no useful solution anywhere.
I got this error because I had put comment inside a component.
On removing that comment the app did run for me.