Preheat the Oven: Preheat your oven to 350°F (175°C). Grease a 9x5-inch loaf pan with butter or non-stick cooking spray and set aside.
Cream Butter and Sugar: In a large mixing bowl, cream together the softened butter and granulated sugar until light and fluffy, using a hand mixer or stand mixer on medium speed.
Add Eggs and Banana: Incorporate the eggs one at a time, making sure each is thoroughly mixed in before adding the subsequent one. Add the mashed banana and mix well until combined.
Incorporate Pineapple and Vanilla: Stir in the crushed pineapple (with juice) and vanilla extract, blending until the mixture is smooth.
Mix Dry Ingredients: In another bowl, combine the all-purpose flour, baking powder, baking soda, and salt, whisking until well blended. Slowly fold the dry ingredients into the wet mixture, mixing until just combined. Take care not to overmix, as this could result in a denser bread.
Add Shredded Coconut: Carefully incorporate the shredded coconut, making sure it is evenly dispersed throughout the batter.
Bake the Bread: Transfer the batter to the prepared loaf pan and smooth it out evenly. Bake in the preheated oven for 55 to 65 minutes, or until a toothpick inserted into the center comes out clean. If the top starts to brown too quickly, cover loosely with aluminum foil during the last 10-15 minutes of baking.
Cool and Serve: Take the bread out of the oven and allow it to cool in the pan for around 10 minutes. Then, carefully move the loaf to a wire rack to cool completely before cutting into slices. Serve warm or at room temperature, and enjoy the tropical flavors!