react-native-international-phone-number 0.7.3 → 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.
Files changed (2) hide show
  1. package/lib/styles.js +12 -6
  2. package/package.json +1 -1
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' && navigator?.userAgent?.includes('Win')
78
- ? 'TwemojiMozilla'
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' && navigator?.userAgent?.includes('Win')
144
- ? 'TwemojiMozilla'
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' && navigator?.userAgent?.includes('Win')
183
- ? 'TwemojiMozilla'
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.3",
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",