Preheat the oven to 350°F (180°C).
Butter or spray a 9x5 inch loaf pan.
Line with a strip of parchment paper, covering the pan's bottom and two short sides. The two long sides will remain unlined but greased. This will help you remove the bread from the pan after it’s baked.
In a small bowl, sift together the flour, baking powder, baking soda, and salt. Whisk to mix and set aside. You can also measure the dry ingredients and sift them directly over the batter as you add them.
In a large bowl, using an electric mixer at medium-high speed, beat the butter and sugars together for 2 minutes.
Add in the eggs, one at a time, beating until fully incorporated after each addition.
Add in the extracts and mix.
Add the sifted flour mixture and mix *just* until combined. Some streaks of flour should remain.
Fold in the pineapple and the coconut with a spatula until all ingredients are incorporated. Pour into the prepared loaf pan.
Bake for 55-60 minutes, or until a cake tester or toothpick comes out clean. Let rest in the pan for about 10 minutes before running a smooth-bladed knife around the edges to loosen up any stuck bits and removing it from the pan. Help yourself with the ends of the parchment paper.
Allow the bread to cool completely on a wire rack.