react-native-international-phone-number 0.6.4 → 0.6.5
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 +7 -2
- package/lib/constants/countries.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -109,11 +109,16 @@ create a `react-native.config.js` file at the root of your react-native project
|
|
|
109
109
|
android: {},
|
|
110
110
|
},
|
|
111
111
|
assets: [
|
|
112
|
-
'./node_modules/react-native-international-phone-number/assets/fonts',
|
|
112
|
+
'./node_modules/react-native-international-phone-number/lib/assets/fonts',
|
|
113
113
|
],
|
|
114
114
|
};
|
|
115
115
|
```
|
|
116
116
|
|
|
117
|
+
Then link the font to your native projects with:
|
|
118
|
+
```bash
|
|
119
|
+
npx react-native-asset
|
|
120
|
+
```
|
|
121
|
+
|
|
117
122
|
- Using Expo:
|
|
118
123
|
|
|
119
124
|
1. Install [expo-fonts](https://docs.expo.dev/versions/latest/sdk/font/): `npx expo install expo-font`;
|
|
@@ -125,7 +130,7 @@ create a `react-native.config.js` file at the root of your react-native project
|
|
|
125
130
|
...
|
|
126
131
|
|
|
127
132
|
useFonts({
|
|
128
|
-
'TwemojiMozilla': require('./node_modules/react-native-international-phone-number/assets/fonts/TwemojiMozilla.ttf'),
|
|
133
|
+
'TwemojiMozilla': require('./node_modules/react-native-international-phone-number/lib/assets/fonts/TwemojiMozilla.ttf'),
|
|
129
134
|
});
|
|
130
135
|
|
|
131
136
|
...
|
|
@@ -1263,7 +1263,7 @@ export const countries = [
|
|
|
1263
1263
|
ua: "Кот-д'Івуар",
|
|
1264
1264
|
zh: '科特迪瓦',
|
|
1265
1265
|
},
|
|
1266
|
-
phoneMasks: ['## ### ###'],
|
|
1266
|
+
phoneMasks: ['## ### ###', '## ## ## ####'],
|
|
1267
1267
|
},
|
|
1268
1268
|
{
|
|
1269
1269
|
callingCode: '+682',
|
|
@@ -1347,7 +1347,7 @@ export const countries = [
|
|
|
1347
1347
|
ua: 'Камерун',
|
|
1348
1348
|
zh: '喀麥隆',
|
|
1349
1349
|
},
|
|
1350
|
-
phoneMasks: ['#### ####'],
|
|
1350
|
+
phoneMasks: ['#### ####', '### ### ###'],
|
|
1351
1351
|
},
|
|
1352
1352
|
{
|
|
1353
1353
|
callingCode: '+86',
|
|
@@ -2082,7 +2082,7 @@ export const countries = [
|
|
|
2082
2082
|
ua: 'Франція',
|
|
2083
2083
|
zh: '法國',
|
|
2084
2084
|
},
|
|
2085
|
-
phoneMasks: ['
|
|
2085
|
+
phoneMasks: ['# ## ## ## ##', '## ## ## ## ##'],
|
|
2086
2086
|
},
|
|
2087
2087
|
{
|
|
2088
2088
|
callingCode: '+241',
|
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.
|
|
4
|
+
"version": "0.6.5",
|
|
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",
|