rili-live / react-native-phone-input

Phone input box for React Native
https://www.npmjs.com/package/react-native-phone-input
MIT License
44 stars 55 forks source link

feat: allow for different flag rendering (e.g. to add an icon). #29

Closed cjpete closed 2 years ago

cjpete commented 2 years ago

In order to support adding an icon to visually indicate that the flag is tappable (e.g. in image below), support a backwards compatible renderFlag method.

image

zizzle6717 commented 2 years ago

Could you add example of usage in the README file?

cjpete commented 2 years ago

@zizzle6717 I've added an example to the readme, and added mention of the flagStyle overrides which are preferable for most everyday use-cases.

rililive commented 2 years ago

Thanks @cjpete Published at v1.3.0