You do not need to avoid eating peanuts when you’re pregnant. As it does not cause peanut allergy in newborn as previously thought.
They key here is moderation. You can take one serving of pineapple a day which is one cup (165g) Or 2 slices, 3 inches in diameter and 3/4-inches thick. Pineapple contain enzyme bromelin which can cause uterine contractions in animals only if applied directly to uterus. But even in animal studies it simply caused uterine contraction but not labour. There have been no studies in human. Bromelin is more concentrated in core of the fruit, while we take outer fruit. Taking concentrated bromelin tablets may cause uterine contractions but taking fruit in right serving size does not affect pregnancy.
Normal consumption of ripe papaya during pregnancy may not pose any significant danger. However, the unripened or semi-unripened papaya (which contains high concentrations of the Latex that produces marked uterine contractions) could be unsafe in pregnancy. You can take one serving of ripe papaya a day Which is one cup(145g).