AstrOOnauta / react-native-international-phone-number

⚛️ International mobile phone number input component for React Native 📱
https://snack.expo.dev/@astroonauta/react-native-international-phone-number
ISC License
262 stars 45 forks source link

I cant use showOnly #29

Closed erdincakdogan closed 10 months ago

erdincakdogan commented 10 months ago

Hello,

"react-native-international-phone-number": "^0.4.12",

I m using this version and my using time is like a below

<PhoneInput value={inputValue} onChangePhoneNumber={handleInputValue} defaultCountry="TR" showOnly={['BR', 'PT', 'CA', 'US']} selectedCountry={selectedCountry} onChangeSelectedCountry={handleSelectedCountry} containerStyle={{ flexDirection: "row", alignItems: "center", borderBottomColor: "#ccc", borderBottomWidth: 1, paddingBottom: 8, marginBottom: 25, }} inputStyle={{ flex: 1, paddingVertical: 0, marginLeft: 10, color: "black", }} flagContainerStyle={{ borderTopLeftRadius: 10, borderBottomLeftRadius: 7, backgroundColor: "#808080", justifyContent: "center", marginLeft: 10, marginTop: 4 }} />

What is the problem about showOnly. I just want to use TR,DE

AstrOOnauta commented 10 months ago

Hey @erdincakdogan ..this feature showOnly is only available from v0.6.1.

So, please, update your lib version and read the actual documentation if you have any problem or break ;)

🚀 AstrOOnauta 🚀