Preheat oven to 350 degrees Fahrenheit.
Grease one 9×5-inch loaf pan with cooking spray, butter. I like to add a piece of parchment paper with overhangs instead to easily pull out the bread easily from the tin later. Set aside.
In a large bowl, mix egg, sugars, vanilla, mashed banana, and oil.
In a separate mixing bowl combine dry ingredients and add to wet ingredients. Mix on low until everything is combined. Don't overmix though.
Gently stir the pineapple pieces and coconut into batter with a spatula. The batter: should be soft, sticky and you’ll have to spoon it into the tin. It doesn’t have a ‘’pourable’’ texture. Transfer the batter to a 9 x 5-inch loaf tin. Tap the tin a few times against an even surface to remove the air bubbles and make the batter even (however I like to ‘’move’’ the batter a little more towards the center, working from the sides up. Totally personal preference!).
Make a small cut in the middle of the bread. Decorate with pineapple slices on top (optional).
Bake for about 50 minutes or until the top is golden, the center is set, and a toothpick inserted in the center comes out clean, or with a few moist crumbs.
Take the bread out of the oven and let it cool for 10 minutes in the loaf pan. Then transfer to a wire rack to cool completely. Don't leave the bread in the tin for too long, otherwise it will continue to cook and dry out in the end.