Phone number input with masking and country code picker with flags?

Is there a way to get a phone number input with a flag selector for the country code? I’ve been looking everywhere and cannot find anything with this.

i am also looking same in ionic 3