Skip to content

fix: pass onOpen to FlagButton and extend DE phone mask#15

Open
ehernandezlabelgrup wants to merge 1 commit intoanday013:mainfrom
ehernandezlabelgrup:fix/flag-button-onopen-and-de-mask
Open

fix: pass onOpen to FlagButton and extend DE phone mask#15
ehernandezlabelgrup wants to merge 1 commit intoanday013:mainfrom
ehernandezlabelgrup:fix/flag-button-onopen-and-de-mask

Conversation

@ehernandezlabelgrup
Copy link
Copy Markdown

  • renderFlagButton was ignoring the props passed by CountryPicker, which include onOpen. This caused tapping the flag emoji to do nothing because FlagButton's internal TouchableOpacity had no onPress handler. Now onOpen is forwarded so tapping the flag opens the country modal.

  • The German (DE) mask only allowed 6 digits, blocking mobile numbers like +49 176 96079449 (11 digits). Updated mask to support up to 11-digit numbers (XXXX XXXXXXX format).

Closes #9

- renderFlagButton was ignoring the props passed by CountryPicker,
  which include onOpen. This caused tapping the flag emoji to do nothing
  because FlagButton's internal TouchableOpacity had no onPress handler.
  Now onOpen is forwarded so tapping the flag opens the country modal.

- The German (DE) mask only allowed 6 digits, blocking mobile numbers
  like +49 176 96079449 (11 digits). Updated mask to support up to
  11-digit numbers (XXXX XXXXXXX format).

Closes anday013#9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

unable input 14 char included with country code, china and indonesia has massive population right ?

1 participant