react-native-international-phone-number 0.6.5 → 0.6.7

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
@@ -45,7 +45,7 @@
45
45
 
46
46
  - [Old Versions](#old-versions)
47
47
  - [Installation](#installation)
48
- - [Additional Config to Web](#additional-config-to-web)
48
+ - [Additional Config](#additional-config)
49
49
  - [Features](#features)
50
50
  - [Basic Usage](#basic-usage)
51
51
  - [With Class Component](#class-component)
@@ -96,7 +96,9 @@ OR
96
96
  $ yarn add react-native-international-phone-number
97
97
  ```
98
98
 
99
- ## Additional config to `Web`
99
+ ## Additional config
100
+
101
+ ### iOS and Web
100
102
 
101
103
  - Using React Native CLI:
102
104
 
@@ -115,6 +117,7 @@ create a `react-native.config.js` file at the root of your react-native project
115
117
  ```
116
118
 
117
119
  Then link the font to your native projects with:
120
+
118
121
  ```bash
119
122
  npx react-native-asset
120
123
  ```
@@ -130,7 +133,7 @@ npx react-native-asset
130
133
  ...
131
134
 
132
135
  useFonts({
133
- 'TwemojiMozilla': require('./node_modules/react-native-international-phone-number/lib/assets/fonts/TwemojiMozilla.ttf'),
136
+ 'TwemojiMozilla': require('./node_modules/react-native-international-phone-number/lib/assets/fonts/TwemojiMozilla.woff2'),
134
137
  });
135
138
 
136
139
  ...
@@ -138,6 +141,23 @@ npx react-native-asset
138
141
 
139
142
  > Observation: _you need to recompile your project after adding new fonts._
140
143
 
144
+ ## only iOS
145
+
146
+ - Edit `Info.plist` inside `ios` folder with following code:
147
+
148
+ ```bash
149
+ ...
150
+ <key>UIAppFonts</key>
151
+ <array>
152
+ <string>TwemojiMozilla.woff2</string>
153
+ ...
154
+ </array>
155
+ ```
156
+
157
+ and add the font `Twemoji Mozilla` to the Copy Bundle Resources, in Build Phases inside your project XCode.
158
+
159
+ > Observation: _you need to recompile your project after adding new fonts._
160
+
141
161
  <br>
142
162
 
143
163
  ## Features
@@ -3961,7 +3961,7 @@ export const countries = [
3961
3961
  ua: 'Мадагаскар',
3962
3962
  zh: '馬達加斯加',
3963
3963
  },
3964
- phoneMasks: ['## ## #####'],
3964
+ phoneMasks: ['## ## ### ##'],
3965
3965
  },
3966
3966
  {
3967
3967
  callingCode: '+692',
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.5",
4
+ "version": "0.6.7",
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",
Binary file