react-native-international-phone-number 0.6.2 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -657,7 +657,7 @@ export default function App() {
657
657
  - `modalDisabled?:` boolean;
658
658
  - `modalHeight?:` number | string;
659
659
  - `theme?:` [ITheme](lib/interfaces/theme.ts);
660
- - `phoneInputStyle?:` [IPhoneInputStyles](lib/interfaces/phoneInputStyles.ts);
660
+ - `phoneInputStyles?:` [IPhoneInputStyles](lib/interfaces/phoneInputStyles.ts);
661
661
  - `modalStyles?:` [IModalStyles](lib/interfaces/modalStyles.ts);
662
662
  - `modalSearchInputPlaceholder?:` string;
663
663
  - `modalNotFoundCountryMessage?:` string;
package/lib/index.js CHANGED
@@ -40,8 +40,8 @@ const PhoneInput = forwardRef(
40
40
  placeholder,
41
41
  placeholderTextColor,
42
42
  selectionColor,
43
- phoneInputStyle,
44
- modalStyle,
43
+ phoneInputStyles,
44
+ modalStyles,
45
45
  disabled,
46
46
  modalDisabled,
47
47
  modalHeight,
@@ -83,8 +83,8 @@ const PhoneInput = forwardRef(
83
83
  placeholder,
84
84
  placeholderTextColor,
85
85
  selectionColor,
86
- phoneInputStyle,
87
- modalStyle,
86
+ phoneInputStyles,
87
+ modalStyles,
88
88
  disabled,
89
89
  modalDisabled,
90
90
  modalHeight,
@@ -289,7 +289,7 @@ const PhoneInput = forwardRef(
289
289
  <View
290
290
  style={getContainerStyle(
291
291
  theme,
292
- phoneInputStyle?.container,
292
+ phoneInputStyles?.container,
293
293
  disabled
294
294
  )}
295
295
  >
@@ -300,36 +300,36 @@ const PhoneInput = forwardRef(
300
300
  }
301
301
  style={getFlagContainerStyle(
302
302
  theme,
303
- phoneInputStyle?.flagContainer
303
+ phoneInputStyles?.flagContainer
304
304
  )}
305
305
  >
306
- <Text style={getFlagStyle(phoneInputStyle?.flag)}>
306
+ <Text style={getFlagStyle(phoneInputStyles?.flag)}>
307
307
  {countryValue?.flag}
308
308
  </Text>
309
309
  <Text
310
310
  style={getFlagTextStyle(
311
311
  theme,
312
- phoneInputStyle?.callingCode
312
+ phoneInputStyles?.callingCode
313
313
  )}
314
314
  >
315
315
  {countryValue?.callingCode}
316
316
  </Text>
317
317
  </TouchableOpacity>
318
318
  <TextInput
319
- style={getInputStyle(theme, phoneInputStyle?.input)}
319
+ style={getInputStyle(theme, phoneInputStyles?.input)}
320
320
  placeholder={
321
321
  placeholder ||
322
322
  getPhoneNumberInputPlaceholder(language || 'en')
323
323
  }
324
324
  placeholderTextColor={
325
- placeholderTextColor || theme === 'dark'
326
- ? '#CCCCCC'
327
- : '#AAAAAA'
325
+ placeholderTextColor ||
326
+ (theme === 'dark' ? '#CCCCCC' : '#AAAAAA')
328
327
  }
329
328
  selectionColor={
330
- selectionColor || theme === 'dark'
329
+ selectionColor ||
330
+ (theme === 'dark'
331
331
  ? 'rgba(255,255,255, .4)'
332
- : 'rgba(0 ,0 ,0 , .4)'
332
+ : 'rgba(0 ,0 ,0 , .4)')
333
333
  }
334
334
  editable={!disabled}
335
335
  value={inputValue}
@@ -355,7 +355,7 @@ const PhoneInput = forwardRef(
355
355
  style={getCountryPickerStyle(
356
356
  theme,
357
357
  modalHeight,
358
- modalStyle
358
+ modalStyles
359
359
  )}
360
360
  pickerButtonOnPress={onSelect}
361
361
  onBackdropPress={() => setShow(false)}
@@ -14,8 +14,8 @@ interface BasePhoneInput extends TextInputProps {
14
14
  placeholder?: string;
15
15
  placeholderTextColor?: string;
16
16
  selectionColor?: string;
17
- phoneInputStyle?: IPhoneInputStyles;
18
- modalStyle?: IModalStyles;
17
+ phoneInputStyles?: IPhoneInputStyles;
18
+ modalStyles?: IModalStyles;
19
19
  theme?: ITheme;
20
20
  disabled?: boolean;
21
21
  modalDisabled?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-international-phone-number",
3
3
  "author": "AstrOOnauta (https://github.com/AstrOOnauta)",
4
- "version": "0.6.2",
4
+ "version": "0.6.4",
5
5
  "description": "International mobile phone input component with mask for React Native",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",