Heat oil in a non-stick pan.
Roughly chop onions and green chillies.
Add black gram, mustard seeds, chopped green chillies and onions to the pan. Mix well and saute.
Add curry leaves, mix and saute till the onion turns soft.
Add pomegranate pearls and salt, mix well. Add coconut and mix well.