react-native-phone-number-input icon indicating copy to clipboard operation
react-native-phone-number-input copied to clipboard

Better country flags

Open TanKucukhas opened this issue 3 years ago • 5 comments

I know to save on the size we are using native country flags here. To make this library more usable I think we need to consider adding custom flags. Current flags look really bad on some designs. Would it be possible to expose flags so that we can pass our own flag icons or any? I'm open to contribute to this as well.

For instance, we can use this pack with MIT pack;

https://iconscout.com/icon-pack/country-flags

TanKucukhas avatar Oct 08 '21 23:10 TanKucukhas

@garganurag893 just added a PR. Could you review it? It turns out react-native-country-picker-modal already have this option. I just exposed it by adding an optional boolean.

this is how it looks like. Looks much better than emoji flags in my opion. Screen Shot 2021-10-08 at 8 20 21 PM

TanKucukhas avatar Oct 09 '21 00:10 TanKucukhas

I've checked out #72 and it looks good, simple change!

@garganurag893 it would be awesome to see this go live, I'm hoping to squeeze it into one of our sprint cycles 😅, thanks for the awesome repo

jordiup avatar Oct 19 '21 03:10 jordiup

Is this repo dead? why is this PR being stalled?

Cmoen11 avatar Jan 19 '22 11:01 Cmoen11

Any new on this one ?

FR073N avatar Mar 14 '22 10:03 FR073N

It looks like all CountryPickerProps is already exposed. So no PR is needed. Above can be achieved by passing this;

  <PhoneInput countryPickerProps={{withEmoji: false, renderFlagButton: null}} />

TanKucukhas avatar Jul 25 '22 00:07 TanKucukhas