Pineapples during pregnancy

How anybody heard to avoid them?? I was told there is something in them that causes contractions