rili-live / react-native-phone-input

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

When change fontSize text shifted up in android device. #47

Open rahul-hexalitics01 opened 1 year ago

rahul-hexalitics01 commented 1 year ago

When apply textStyle={{ fontSize: 18, }} text shifted up and also get clipped from top in android device, In iOS working fine, it remain in center.

zizzle6717 commented 1 year ago

You can open a PR for a fix and I will publish it

On Thu, Apr 13, 2023 at 7:29 AM rahul-hexalitics01 @.***> wrote:

When apply textStyle={{ fontSize: 18, }} text shifted up and also get clipped from top in android device, In iOS working fine.

— Reply to this email directly, view it on GitHub https://github.com/rili-live/react-native-phone-input/issues/47, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXGCERWNCVV74VLVOMOMLTXA7WUPANCNFSM6AAAAAAW5ALQ5M . You are receiving this because you are subscribed to this thread.Message ID: @.***>

yusoofash commented 1 year ago

This is how I fixed it, by adding height to textStyle prop.

textStyle={{ fontSize: 18, height: 24 }}