ordering-ui-react-native 0.16.41-release → 0.16.42-release
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/package.json
CHANGED
|
@@ -22,8 +22,9 @@ export const PhoneInputNumber = (props: PhoneInputParams) => {
|
|
|
22
22
|
textStyle,
|
|
23
23
|
flagStyle,
|
|
24
24
|
noDropIcon,
|
|
25
|
-
|
|
26
|
-
isStartValidation
|
|
25
|
+
isDisabled,
|
|
26
|
+
isStartValidation,
|
|
27
|
+
changeCountry
|
|
27
28
|
} = props
|
|
28
29
|
|
|
29
30
|
const theme = useTheme();
|
|
@@ -106,11 +107,16 @@ export const PhoneInputNumber = (props: PhoneInputParams) => {
|
|
|
106
107
|
)}
|
|
107
108
|
<PhoneInput
|
|
108
109
|
ref={phoneInput}
|
|
109
|
-
|
|
110
|
+
disabled={isDisabled}
|
|
110
111
|
defaultValue={userphoneNumber || defaultValue}
|
|
111
|
-
defaultCode={defaultCode ?
|
|
112
|
+
defaultCode={defaultCode ?
|
|
113
|
+
!isNaN(defaultCode)
|
|
114
|
+
? transformCountryCode(defaultCode)
|
|
115
|
+
: defaultCode
|
|
116
|
+
: configs?.default_country_code?.value}
|
|
112
117
|
onChangeFormattedText={(text: string) => handleChangeNumber(text)}
|
|
113
118
|
withDarkTheme
|
|
119
|
+
onChangeCountry={(country) => changeCountry?.(country)}
|
|
114
120
|
countryPickerProps={{ withAlphaFilter: true }}
|
|
115
121
|
textContainerStyle={{ ...style.input, ...inputStyle ? inputStyle : {} }}
|
|
116
122
|
textInputStyle={textStyle}
|
|
@@ -471,7 +471,6 @@ const SignupFormUI = (props: SignupParams) => {
|
|
|
471
471
|
onActionLeft={() => navigation?.canGoBack() && navigation.goBack()}
|
|
472
472
|
showCall={false}
|
|
473
473
|
btnStyle={{ paddingLeft: 0 }}
|
|
474
|
-
style={{ flexDirection: 'column', alignItems: 'flex-start' }}
|
|
475
474
|
titleWrapStyle={{ paddingHorizontal: 0 }}
|
|
476
475
|
titleStyle={{ marginLeft: 0, marginRight: 0 }}
|
|
477
476
|
/>
|