01 - Preheat oven to 350°F. Grease and flour a 9x5 inch loaf pan, or line with parchment paper.
02 - In a large bowl, whisk together the mashed bananas, crushed pineapple, eggs, melted butter, sugar, yogurt, and vanilla extract until smooth.
03 - In a separate bowl, combine the flour, baking soda, baking powder, and salt.
04 - Add the dry ingredients to the wet mixture and stir gently until just combined.
05 - Fold in the shredded coconut and nuts if using, being careful not to overmix.
06 - Pour the batter into the prepared loaf pan and smooth the top.
07 - Bake for 55–65 minutes, or until a toothpick inserted in the center comes out clean or with a few moist crumbs.
08 - Let the bread cool in the pan for 10 minutes, then transfer to a wire rack to cool completely before slicing.