Heat oil in a large frying pan over medium heat and sauté onion in oil until golden brown, about 5 minutes. Add garlic, chile flakes, basil, soy sauce, lime juice, and shrimp; cook, stirring often, until shrimp turn pink, 3 to 5 minutes. Add mango and cook until warm. Sprinkle with toasted coconut and serve with steamed jasmine rice.
Note: Nutritional analysis is per serving.