react-native-international-phone-number 0.7.2 → 0.7.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 +1 -1
- package/lib/styles.js +12 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -641,7 +641,7 @@ export default function App() {
|
|
|
641
641
|
|
|
642
642
|
> Observations:
|
|
643
643
|
>
|
|
644
|
-
> 1. You need to use a default value with the
|
|
644
|
+
> 1. You need to use a default value with the [e164](https://en.wikipedia.org/wiki/E.164) format: `+(country callling code)(area code)(number phone)`
|
|
645
645
|
> 2. The lib has the mechanism to set the flag and mask of the supplied `defaultValue`. However, if the supplied `defaultValue` does not match any international standard, the `input mask of the defaultValue` will be set to "BR" (please make sure that the default value is in the format mentioned above).
|
|
646
646
|
|
|
647
647
|
- ### Show Only Some Countries Inside Modal:
|
package/lib/styles.js
CHANGED
|
@@ -74,8 +74,10 @@ const styles = StyleSheet.create({
|
|
|
74
74
|
fontSize: 20,
|
|
75
75
|
marginRight: 6,
|
|
76
76
|
fontFamily:
|
|
77
|
-
Platform.OS === 'web'
|
|
78
|
-
? '
|
|
77
|
+
Platform.OS === 'web'
|
|
78
|
+
? navigator?.userAgent?.includes('Win')
|
|
79
|
+
? 'TwemojiMozilla'
|
|
80
|
+
: 'System'
|
|
79
81
|
: 'System',
|
|
80
82
|
},
|
|
81
83
|
lightCaret: {
|
|
@@ -140,8 +142,10 @@ const styles = StyleSheet.create({
|
|
|
140
142
|
color: '#FFFFFF',
|
|
141
143
|
fontSize: 20,
|
|
142
144
|
fontFamily:
|
|
143
|
-
Platform.OS === 'web'
|
|
144
|
-
? '
|
|
145
|
+
Platform.OS === 'web'
|
|
146
|
+
? navigator?.userAgent?.includes('Win')
|
|
147
|
+
? 'TwemojiMozilla'
|
|
148
|
+
: 'System'
|
|
145
149
|
: 'System',
|
|
146
150
|
},
|
|
147
151
|
dialCode: {},
|
|
@@ -179,8 +183,10 @@ const styles = StyleSheet.create({
|
|
|
179
183
|
color: '#FFFFFF',
|
|
180
184
|
fontSize: 20,
|
|
181
185
|
fontFamily:
|
|
182
|
-
Platform.OS === 'web'
|
|
183
|
-
? '
|
|
186
|
+
Platform.OS === 'web'
|
|
187
|
+
? navigator?.userAgent?.includes('Win')
|
|
188
|
+
? 'TwemojiMozilla'
|
|
189
|
+
: 'System'
|
|
184
190
|
: 'System',
|
|
185
191
|
},
|
|
186
192
|
dialCode: {
|
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.7.
|
|
4
|
+
"version": "0.7.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",
|