react-native-country-select 0.3.3 → 0.3.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/lib/components/BottomSheetModal/index.tsx +86 -61
- package/lib/components/CountryItem/index.tsx +51 -43
- package/lib/components/CountrySelect/index.tsx +1 -4
- package/lib/components/FullscreenModal/index.tsx +47 -34
- package/lib/components/PopupModal/index.tsx +39 -26
- package/lib/components/styles.js +1 -3
- package/lib/constants/countries.json +66 -30
- package/lib/interface/countryItemProps.ts +1 -0
- package/package.json +4 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable react-native/no-inline-styles */
|
|
2
|
-
import React, {useEffect, useMemo, useRef, useState} from 'react';
|
|
2
|
+
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
3
3
|
import {
|
|
4
4
|
Animated,
|
|
5
5
|
Modal,
|
|
@@ -10,9 +10,13 @@ import {
|
|
|
10
10
|
Keyboard,
|
|
11
11
|
NativeSyntheticEvent,
|
|
12
12
|
} from 'react-native';
|
|
13
|
+
import {
|
|
14
|
+
SafeAreaProvider,
|
|
15
|
+
SafeAreaView,
|
|
16
|
+
} from 'react-native-safe-area-context';
|
|
13
17
|
|
|
14
18
|
import parseHeight from '../../utils/parseHeight';
|
|
15
|
-
import {ICountrySelectStyle} from '../../interface';
|
|
19
|
+
import { ICountrySelectStyle } from '../../interface';
|
|
16
20
|
|
|
17
21
|
interface BottomSheetModalProps extends ModalProps {
|
|
18
22
|
visible: boolean;
|
|
@@ -67,19 +71,26 @@ export const BottomSheetModal: React.FC<BottomSheetModalProps> = ({
|
|
|
67
71
|
const dragStartYRef = useRef(0);
|
|
68
72
|
|
|
69
73
|
useEffect(() => {
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
+
const parsedMinHeight = parseHeight(
|
|
75
|
+
minBottomsheetHeight,
|
|
76
|
+
modalHeight
|
|
77
|
+
);
|
|
78
|
+
const parsedMaxHeight = parseHeight(
|
|
79
|
+
maxBottomsheetHeight,
|
|
80
|
+
modalHeight
|
|
81
|
+
);
|
|
74
82
|
const parsedInitialHeight = parseHeight(
|
|
75
83
|
initialBottomsheetHeight,
|
|
76
|
-
|
|
84
|
+
modalHeight
|
|
77
85
|
);
|
|
78
86
|
setBottomSheetSize({
|
|
79
|
-
minHeight:
|
|
80
|
-
|
|
87
|
+
minHeight:
|
|
88
|
+
parsedMinHeight || MIN_HEIGHT_PERCENTAGE * modalHeight,
|
|
89
|
+
maxHeight:
|
|
90
|
+
parsedMaxHeight || MAX_HEIGHT_PERCENTAGE * modalHeight,
|
|
81
91
|
initialHeight:
|
|
82
|
-
parsedInitialHeight ||
|
|
92
|
+
parsedInitialHeight ||
|
|
93
|
+
INITIAL_HEIGHT_PERCENTAGE * modalHeight,
|
|
83
94
|
});
|
|
84
95
|
}, [
|
|
85
96
|
modalHeight,
|
|
@@ -115,17 +126,17 @@ export const BottomSheetModal: React.FC<BottomSheetModalProps> = ({
|
|
|
115
126
|
onStartShouldSetPanResponder: () => true,
|
|
116
127
|
onMoveShouldSetPanResponder: (_evt, gestureState) =>
|
|
117
128
|
Math.abs(gestureState.dy) > 5,
|
|
118
|
-
onPanResponderGrant: e => {
|
|
129
|
+
onPanResponderGrant: (e) => {
|
|
119
130
|
dragStartYRef.current = e.nativeEvent.pageY;
|
|
120
131
|
sheetHeight.stopAnimation();
|
|
121
132
|
},
|
|
122
|
-
onPanResponderMove: e => {
|
|
133
|
+
onPanResponderMove: (e) => {
|
|
123
134
|
const currentY = e.nativeEvent.pageY;
|
|
124
135
|
const dy = currentY - dragStartYRef.current;
|
|
125
136
|
const proposedHeight = lastHeightRef.current - dy;
|
|
126
137
|
sheetHeight.setValue(proposedHeight);
|
|
127
138
|
},
|
|
128
|
-
onPanResponderRelease: e => {
|
|
139
|
+
onPanResponderRelease: (e) => {
|
|
129
140
|
const currentY = e.nativeEvent.pageY;
|
|
130
141
|
const dy = currentY - dragStartYRef.current;
|
|
131
142
|
const currentHeight = lastHeightRef.current - dy;
|
|
@@ -134,12 +145,14 @@ export const BottomSheetModal: React.FC<BottomSheetModalProps> = ({
|
|
|
134
145
|
toValue: 0,
|
|
135
146
|
duration: 200,
|
|
136
147
|
useNativeDriver: false,
|
|
137
|
-
}).start(() =>
|
|
148
|
+
}).start(() =>
|
|
149
|
+
onRequestClose({} as NativeSyntheticEvent<any>)
|
|
150
|
+
);
|
|
138
151
|
return;
|
|
139
152
|
}
|
|
140
153
|
const finalHeight = Math.min(
|
|
141
154
|
Math.max(currentHeight, bottomSheetSize.minHeight),
|
|
142
|
-
bottomSheetSize.maxHeight
|
|
155
|
+
bottomSheetSize.maxHeight
|
|
143
156
|
);
|
|
144
157
|
Animated.spring(sheetHeight, {
|
|
145
158
|
toValue: finalHeight,
|
|
@@ -159,7 +172,7 @@ export const BottomSheetModal: React.FC<BottomSheetModalProps> = ({
|
|
|
159
172
|
}).start();
|
|
160
173
|
},
|
|
161
174
|
}),
|
|
162
|
-
[bottomSheetSize, sheetHeight, onRequestClose]
|
|
175
|
+
[bottomSheetSize, sheetHeight, onRequestClose]
|
|
163
176
|
);
|
|
164
177
|
return (
|
|
165
178
|
<Modal
|
|
@@ -168,56 +181,68 @@ export const BottomSheetModal: React.FC<BottomSheetModalProps> = ({
|
|
|
168
181
|
animationType="slide"
|
|
169
182
|
onRequestClose={onRequestClose}
|
|
170
183
|
statusBarTranslucent={statusBarTranslucent}
|
|
171
|
-
{...props}
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
style={
|
|
175
|
-
onLayout={e => setModalHeight(e.nativeEvent.layout.height)}>
|
|
176
|
-
<Pressable
|
|
177
|
-
testID="countrySelectBackdrop"
|
|
178
|
-
accessibilityRole="button"
|
|
179
|
-
accessibilityLabel={accessibilityLabelBackdrop}
|
|
180
|
-
accessibilityHint={accessibilityHintBackdrop}
|
|
181
|
-
disabled={disabledBackdropPress || removedBackdrop}
|
|
182
|
-
style={[
|
|
183
|
-
styles.backdrop,
|
|
184
|
-
countrySelectStyle?.backdrop,
|
|
185
|
-
removedBackdrop && {backgroundColor: 'transparent'},
|
|
186
|
-
]}
|
|
187
|
-
onPress={onBackdropPress || onRequestClose}
|
|
188
|
-
/>
|
|
189
|
-
<Animated.View
|
|
190
|
-
testID="countrySelectContent"
|
|
191
|
-
style={[
|
|
192
|
-
styles.content,
|
|
193
|
-
countrySelectStyle?.content,
|
|
194
|
-
{
|
|
195
|
-
height: sheetHeight,
|
|
196
|
-
},
|
|
197
|
-
]}>
|
|
184
|
+
{...props}
|
|
185
|
+
>
|
|
186
|
+
<SafeAreaProvider>
|
|
187
|
+
<SafeAreaView style={{ flex: 1 }}>
|
|
198
188
|
<View
|
|
199
|
-
|
|
200
|
-
style={[
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
189
|
+
testID="countrySelectContainer"
|
|
190
|
+
style={[styles.container, countrySelectStyle?.container]}
|
|
191
|
+
onLayout={(e) =>
|
|
192
|
+
setModalHeight(e.nativeEvent.layout.height)
|
|
193
|
+
}
|
|
194
|
+
>
|
|
195
|
+
<Pressable
|
|
196
|
+
testID="countrySelectBackdrop"
|
|
197
|
+
accessibilityRole="button"
|
|
198
|
+
accessibilityLabel={accessibilityLabelBackdrop}
|
|
199
|
+
accessibilityHint={accessibilityHintBackdrop}
|
|
200
|
+
disabled={disabledBackdropPress || removedBackdrop}
|
|
201
|
+
style={[
|
|
202
|
+
styles.backdrop,
|
|
203
|
+
countrySelectStyle?.backdrop,
|
|
204
|
+
removedBackdrop && { backgroundColor: 'transparent' },
|
|
205
|
+
]}
|
|
206
|
+
onPress={onBackdropPress || onRequestClose}
|
|
207
|
+
/>
|
|
208
|
+
<Animated.View
|
|
209
|
+
testID="countrySelectContent"
|
|
210
|
+
style={[
|
|
211
|
+
styles.content,
|
|
212
|
+
countrySelectStyle?.content,
|
|
213
|
+
{
|
|
214
|
+
height: sheetHeight,
|
|
215
|
+
},
|
|
216
|
+
]}
|
|
217
|
+
>
|
|
207
218
|
<View
|
|
219
|
+
{...panHandlers.panHandlers}
|
|
208
220
|
style={[
|
|
209
|
-
styles.
|
|
210
|
-
countrySelectStyle?.
|
|
221
|
+
styles.dragHandleContainer,
|
|
222
|
+
countrySelectStyle?.dragHandleContainer,
|
|
211
223
|
]}
|
|
212
|
-
|
|
213
|
-
|
|
224
|
+
>
|
|
225
|
+
{dragHandleIndicatorComponent ? (
|
|
226
|
+
dragHandleIndicatorComponent()
|
|
227
|
+
) : (
|
|
228
|
+
<View
|
|
229
|
+
style={[
|
|
230
|
+
styles.dragHandleIndicator,
|
|
231
|
+
countrySelectStyle?.dragHandleIndicator,
|
|
232
|
+
]}
|
|
233
|
+
/>
|
|
234
|
+
)}
|
|
235
|
+
</View>
|
|
236
|
+
{header}
|
|
237
|
+
<Animated.View
|
|
238
|
+
style={{ flex: 1, flexDirection: 'row' }}
|
|
239
|
+
>
|
|
240
|
+
{children}
|
|
241
|
+
</Animated.View>
|
|
242
|
+
</Animated.View>
|
|
214
243
|
</View>
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
{children}
|
|
218
|
-
</Animated.View>
|
|
219
|
-
</Animated.View>
|
|
220
|
-
</View>
|
|
244
|
+
</SafeAreaView>
|
|
245
|
+
</SafeAreaProvider>
|
|
221
246
|
</Modal>
|
|
222
247
|
);
|
|
223
248
|
};
|
|
@@ -13,6 +13,7 @@ export const CountryItem = memo<ICountryItemProps>(
|
|
|
13
13
|
theme = 'light',
|
|
14
14
|
language = 'eng',
|
|
15
15
|
countrySelectStyle,
|
|
16
|
+
countryItemComponent,
|
|
16
17
|
customFlag,
|
|
17
18
|
accessibilityLabel,
|
|
18
19
|
accessibilityHint,
|
|
@@ -34,55 +35,62 @@ export const CountryItem = memo<ICountryItemProps>(
|
|
|
34
35
|
translations.accessibilityHintCountryItem[language] +
|
|
35
36
|
` ${country.translations[language]?.common}`
|
|
36
37
|
}
|
|
37
|
-
style={[
|
|
38
|
-
styles.countryItem,
|
|
39
|
-
countrySelectStyle?.countryItem,
|
|
40
|
-
isSelected && styles.countryItemSelected,
|
|
41
|
-
]}
|
|
42
38
|
onPress={() => onSelect(country)}
|
|
43
39
|
>
|
|
44
|
-
{
|
|
45
|
-
|
|
46
|
-
customFlag(country) !== null ? (
|
|
47
|
-
customFlag(country)
|
|
40
|
+
{countryItemComponent ? (
|
|
41
|
+
countryItemComponent(country)
|
|
48
42
|
) : (
|
|
49
|
-
<
|
|
50
|
-
testID="countrySelectItemFlag"
|
|
51
|
-
style={[styles.flag, countrySelectStyle?.flag]}
|
|
52
|
-
allowFontScaling={allowFontScaling}
|
|
53
|
-
>
|
|
54
|
-
{country.flag || country.cca2}
|
|
55
|
-
</Text>
|
|
56
|
-
)}
|
|
57
|
-
<View
|
|
58
|
-
style={[
|
|
59
|
-
styles.countryInfo,
|
|
60
|
-
countrySelectStyle?.countryInfo,
|
|
61
|
-
]}
|
|
62
|
-
>
|
|
63
|
-
<Text
|
|
64
|
-
testID="countrySelectItemCallingCode"
|
|
65
|
-
style={[
|
|
66
|
-
styles.callingCode,
|
|
67
|
-
countrySelectStyle?.callingCode,
|
|
68
|
-
isSelected && styles.callingCodeSelected,
|
|
69
|
-
]}
|
|
70
|
-
allowFontScaling={allowFontScaling}
|
|
71
|
-
>
|
|
72
|
-
{country.idd.root}
|
|
73
|
-
</Text>
|
|
74
|
-
<Text
|
|
75
|
-
testID="countrySelectItemName"
|
|
43
|
+
<View
|
|
76
44
|
style={[
|
|
77
|
-
styles.
|
|
78
|
-
countrySelectStyle?.
|
|
79
|
-
isSelected && styles.
|
|
45
|
+
styles.countryItem,
|
|
46
|
+
countrySelectStyle?.countryItem,
|
|
47
|
+
isSelected && styles.countryItemSelected,
|
|
80
48
|
]}
|
|
81
|
-
allowFontScaling={allowFontScaling}
|
|
82
49
|
>
|
|
83
|
-
{
|
|
84
|
-
|
|
85
|
-
|
|
50
|
+
{customFlag &&
|
|
51
|
+
customFlag(country) !== undefined &&
|
|
52
|
+
customFlag(country) !== null ? (
|
|
53
|
+
customFlag(country)
|
|
54
|
+
) : (
|
|
55
|
+
<Text
|
|
56
|
+
testID="countrySelectItemFlag"
|
|
57
|
+
style={[styles.flag, countrySelectStyle?.flag]}
|
|
58
|
+
allowFontScaling={allowFontScaling}
|
|
59
|
+
>
|
|
60
|
+
{country.flag || country.cca2}
|
|
61
|
+
</Text>
|
|
62
|
+
)}
|
|
63
|
+
<View
|
|
64
|
+
style={[
|
|
65
|
+
styles.countryInfo,
|
|
66
|
+
countrySelectStyle?.countryInfo,
|
|
67
|
+
]}
|
|
68
|
+
>
|
|
69
|
+
<Text
|
|
70
|
+
testID="countrySelectItemCallingCode"
|
|
71
|
+
style={[
|
|
72
|
+
styles.callingCode,
|
|
73
|
+
countrySelectStyle?.callingCode,
|
|
74
|
+
isSelected && styles.callingCodeSelected,
|
|
75
|
+
]}
|
|
76
|
+
allowFontScaling={allowFontScaling}
|
|
77
|
+
>
|
|
78
|
+
{country.idd.root}
|
|
79
|
+
</Text>
|
|
80
|
+
<Text
|
|
81
|
+
testID="countrySelectItemName"
|
|
82
|
+
style={[
|
|
83
|
+
styles.countryName,
|
|
84
|
+
countrySelectStyle?.countryName,
|
|
85
|
+
isSelected && styles.countryNameSelected,
|
|
86
|
+
]}
|
|
87
|
+
allowFontScaling={allowFontScaling}
|
|
88
|
+
>
|
|
89
|
+
{country?.translations[language]?.common}
|
|
90
|
+
</Text>
|
|
91
|
+
</View>
|
|
92
|
+
</View>
|
|
93
|
+
)}
|
|
86
94
|
</TouchableOpacity>
|
|
87
95
|
);
|
|
88
96
|
}
|
|
@@ -371,10 +371,6 @@ export const CountrySelect: React.FC<ICountrySelectProps> = ({
|
|
|
371
371
|
);
|
|
372
372
|
}
|
|
373
373
|
|
|
374
|
-
if (countryItemComponent) {
|
|
375
|
-
return countryItemComponent(item as ICountry);
|
|
376
|
-
}
|
|
377
|
-
|
|
378
374
|
const countryItem = item as ICountry;
|
|
379
375
|
const selected =
|
|
380
376
|
isMultiSelect && isCountrySelected(countryItem.cca2);
|
|
@@ -387,6 +383,7 @@ export const CountrySelect: React.FC<ICountrySelectProps> = ({
|
|
|
387
383
|
language={language}
|
|
388
384
|
countrySelectStyle={countrySelectStyle}
|
|
389
385
|
customFlag={customFlag}
|
|
386
|
+
countryItemComponent={countryItemComponent}
|
|
390
387
|
accessibilityLabel={accessibilityLabelCountryItem}
|
|
391
388
|
accessibilityHint={accessibilityHintCountryItem}
|
|
392
389
|
allowFontScaling={allowFontScaling}
|
|
@@ -7,8 +7,12 @@ import {
|
|
|
7
7
|
Pressable,
|
|
8
8
|
View,
|
|
9
9
|
} from 'react-native';
|
|
10
|
+
import {
|
|
11
|
+
SafeAreaProvider,
|
|
12
|
+
SafeAreaView,
|
|
13
|
+
} from 'react-native-safe-area-context';
|
|
10
14
|
|
|
11
|
-
import {ICountrySelectStyle} from '../../interface';
|
|
15
|
+
import { ICountrySelectStyle } from '../../interface';
|
|
12
16
|
|
|
13
17
|
interface FullscreenModalProps extends ModalProps {
|
|
14
18
|
visible: boolean;
|
|
@@ -47,39 +51,48 @@ export const FullscreenModal: React.FC<FullscreenModalProps> = ({
|
|
|
47
51
|
animationType="fade"
|
|
48
52
|
onRequestClose={onRequestClose}
|
|
49
53
|
statusBarTranslucent={statusBarTranslucent}
|
|
50
|
-
{...props}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
style={
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
54
|
+
{...props}
|
|
55
|
+
>
|
|
56
|
+
<SafeAreaProvider>
|
|
57
|
+
<SafeAreaView style={{ flex: 1 }}>
|
|
58
|
+
<View
|
|
59
|
+
testID="countrySelectContainer"
|
|
60
|
+
style={[
|
|
61
|
+
styles.container,
|
|
62
|
+
countrySelectStyle?.container,
|
|
63
|
+
{ flex: 1, width: '100%', height: '100%' },
|
|
64
|
+
]}
|
|
65
|
+
>
|
|
66
|
+
<Pressable
|
|
67
|
+
testID="countrySelectBackdrop"
|
|
68
|
+
accessibilityRole="button"
|
|
69
|
+
accessibilityLabel={accessibilityLabelBackdrop}
|
|
70
|
+
accessibilityHint={accessibilityHintBackdrop}
|
|
71
|
+
disabled={disabledBackdropPress || removedBackdrop}
|
|
72
|
+
style={[
|
|
73
|
+
styles.backdrop,
|
|
74
|
+
{ alignItems: 'center', justifyContent: 'center' },
|
|
75
|
+
countrySelectStyle?.backdrop,
|
|
76
|
+
removedBackdrop && { backgroundColor: 'transparent' },
|
|
77
|
+
]}
|
|
78
|
+
onPress={onBackdropPress || onRequestClose}
|
|
79
|
+
/>
|
|
80
|
+
<View
|
|
81
|
+
testID="countrySelectContent"
|
|
82
|
+
style={[
|
|
83
|
+
styles.content,
|
|
84
|
+
countrySelectStyle?.content,
|
|
85
|
+
{ borderRadius: 0, width: '100%', height: '100%' },
|
|
86
|
+
]}
|
|
87
|
+
>
|
|
88
|
+
{header}
|
|
89
|
+
<View style={{ flex: 1, flexDirection: 'row' }}>
|
|
90
|
+
{children}
|
|
91
|
+
</View>
|
|
92
|
+
</View>
|
|
93
|
+
</View>
|
|
94
|
+
</SafeAreaView>
|
|
95
|
+
</SafeAreaProvider>
|
|
83
96
|
</Modal>
|
|
84
97
|
);
|
|
85
98
|
};
|
|
@@ -7,8 +7,12 @@ import {
|
|
|
7
7
|
Pressable,
|
|
8
8
|
View,
|
|
9
9
|
} from 'react-native';
|
|
10
|
+
import {
|
|
11
|
+
SafeAreaProvider,
|
|
12
|
+
SafeAreaView,
|
|
13
|
+
} from 'react-native-safe-area-context';
|
|
10
14
|
|
|
11
|
-
import {ICountrySelectStyle} from '../../interface';
|
|
15
|
+
import { ICountrySelectStyle } from '../../interface';
|
|
12
16
|
|
|
13
17
|
interface PopupModalProps extends ModalProps {
|
|
14
18
|
visible: boolean;
|
|
@@ -47,31 +51,40 @@ export const PopupModal: React.FC<PopupModalProps> = ({
|
|
|
47
51
|
animationType="fade"
|
|
48
52
|
onRequestClose={onRequestClose}
|
|
49
53
|
statusBarTranslucent={statusBarTranslucent}
|
|
50
|
-
{...props}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
style={
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
54
|
+
{...props}
|
|
55
|
+
>
|
|
56
|
+
<SafeAreaProvider>
|
|
57
|
+
<SafeAreaView style={{ flex: 1 }}>
|
|
58
|
+
<View
|
|
59
|
+
testID="countrySelectContainer"
|
|
60
|
+
style={[styles.container, countrySelectStyle?.container]}
|
|
61
|
+
>
|
|
62
|
+
<Pressable
|
|
63
|
+
testID="countrySelectBackdrop"
|
|
64
|
+
accessibilityRole="button"
|
|
65
|
+
accessibilityLabel={accessibilityLabelBackdrop}
|
|
66
|
+
accessibilityHint={accessibilityHintBackdrop}
|
|
67
|
+
disabled={disabledBackdropPress || removedBackdrop}
|
|
68
|
+
style={[
|
|
69
|
+
styles.backdrop,
|
|
70
|
+
{ alignItems: 'center', justifyContent: 'center' },
|
|
71
|
+
countrySelectStyle?.backdrop,
|
|
72
|
+
removedBackdrop && { backgroundColor: 'transparent' },
|
|
73
|
+
]}
|
|
74
|
+
onPress={onBackdropPress || onRequestClose}
|
|
75
|
+
/>
|
|
76
|
+
<View
|
|
77
|
+
testID="countrySelectContent"
|
|
78
|
+
style={[styles.content, countrySelectStyle?.content]}
|
|
79
|
+
>
|
|
80
|
+
{header}
|
|
81
|
+
<View style={{ flex: 1, flexDirection: 'row' }}>
|
|
82
|
+
{children}
|
|
83
|
+
</View>
|
|
84
|
+
</View>
|
|
85
|
+
</View>
|
|
86
|
+
</SafeAreaView>
|
|
87
|
+
</SafeAreaProvider>
|
|
75
88
|
</Modal>
|
|
76
89
|
);
|
|
77
90
|
};
|
package/lib/components/styles.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {Platform,
|
|
1
|
+
import { Platform, StyleSheet } from 'react-native';
|
|
2
2
|
|
|
3
3
|
export const createStyles = (theme, modalType, isFullScreen) =>
|
|
4
4
|
StyleSheet.create({
|
|
@@ -23,7 +23,6 @@ export const createStyles = (theme, modalType, isFullScreen) =>
|
|
|
23
23
|
content:
|
|
24
24
|
modalType === 'popup' || isFullScreen
|
|
25
25
|
? {
|
|
26
|
-
marginTop: StatusBar.currentHeight,
|
|
27
26
|
width: '90%',
|
|
28
27
|
maxWidth: 600,
|
|
29
28
|
height: '60%',
|
|
@@ -32,7 +31,6 @@ export const createStyles = (theme, modalType, isFullScreen) =>
|
|
|
32
31
|
paddingVertical: 16,
|
|
33
32
|
}
|
|
34
33
|
: {
|
|
35
|
-
marginTop: StatusBar.currentHeight,
|
|
36
34
|
width: '100%',
|
|
37
35
|
borderTopLeftRadius: 20,
|
|
38
36
|
borderTopRightRadius: 20,
|
|
@@ -1478,8 +1478,8 @@
|
|
|
1478
1478
|
"common": "Birle\u015fik Arap Emirlikleri"
|
|
1479
1479
|
},
|
|
1480
1480
|
"ukr": {
|
|
1481
|
-
"official": "\u041e\u0431",
|
|
1482
|
-
"common": "\u041e\u0431"
|
|
1481
|
+
"official": "\u041e\u0431\u02bc\u0454\u0434\u043d\u0430\u043d\u0456 \u0410\u0440\u0430\u0431\u0441\u044c\u043a\u0456 \u0415\u043c\u0456\u0440\u0430\u0442\u0438",
|
|
1482
|
+
"common": "\u041e\u0431\u02bc\u0454\u0434\u043d\u0430\u043d\u0456 \u0410\u0440\u0430\u0431\u0441\u044c\u043a\u0456 \u0415\u043c\u0456\u0440\u0430\u0442\u0438"
|
|
1483
1483
|
},
|
|
1484
1484
|
"urd": {
|
|
1485
1485
|
"official": "\u0645\u062a\u062d\u062f\u06c1 \u0639\u0631\u0628 \u0627\u0645\u0627\u0631\u0627\u062a",
|
|
@@ -2400,6 +2400,10 @@
|
|
|
2400
2400
|
"official": "Frans\u0131z G\u00fcney ve Antarktika Topraklar\u0131",
|
|
2401
2401
|
"common": "Frans\u0131z G\u00fcney ve Antarktika Topraklar\u0131"
|
|
2402
2402
|
},
|
|
2403
|
+
"ukr": {
|
|
2404
|
+
"official": "\u0424\u0440\u0430\u043d\u0446\u0443\u0437\u044c\u043a\u0456 \u041f\u0456\u0432\u0434\u0435\u043d\u043d\u0456 \u0439 \u0410\u043d\u0442\u0430\u0440\u043a\u0442\u0438\u0447\u043d\u0456 \u0422\u0435\u0440\u0438\u0442\u043e\u0440\u0456\u0457",
|
|
2405
|
+
"common": "\u0424\u0440\u0430\u043d\u0446\u0443\u0437\u044c\u043a\u0456 \u041f\u0456\u0432\u0434\u0435\u043d\u043d\u0456 \u0439 \u0410\u043d\u0442\u0430\u0440\u043a\u0442\u0438\u0447\u043d\u0456 \u0422\u0435\u0440\u0438\u0442\u043e\u0440\u0456\u0457"
|
|
2406
|
+
},
|
|
2403
2407
|
"urd": {
|
|
2404
2408
|
"official": "\u0633\u0631\u0632\u0645\u06cc\u0646\u0650 \u062c\u0646\u0648\u0628\u06cc \u0641\u0631\u0627\u0646\u0633\u06cc\u0633\u06cc\u06c1 \u0648 \u0627\u0646\u0679\u0627\u0631\u06a9\u0679\u06cc\u06a9\u06c1",
|
|
2405
2409
|
"common": "\u0633\u0631\u0632\u0645\u06cc\u0646 \u062c\u0646\u0648\u0628\u06cc \u0641\u0631\u0627\u0646\u0633\u06cc\u0633\u06cc\u06c1 \u0648 \u0627\u0646\u0679\u0627\u0631\u06a9\u0679\u06cc\u06a9\u0627"
|
|
@@ -6246,6 +6250,10 @@
|
|
|
6246
6250
|
"official": "Karayip Hollandas\u0131",
|
|
6247
6251
|
"common": "Karayip Hollandas\u0131"
|
|
6248
6252
|
},
|
|
6253
|
+
"ukr": {
|
|
6254
|
+
"official": "\u041a\u0430\u0440\u0438\u0431\u0441\u044c\u043a\u0456 \u041d\u0456\u0434\u0435\u0440\u043b\u0430\u043d\u0434\u0438",
|
|
6255
|
+
"common": "\u041a\u0430\u0440\u0438\u0431\u0441\u044c\u043a\u0456 \u041d\u0456\u0434\u0435\u0440\u043b\u0430\u043d\u0434\u0438"
|
|
6256
|
+
},
|
|
6249
6257
|
"urd": {
|
|
6250
6258
|
"official": "\u0628\u0648\u0646\u0627\u06cc\u0631\u060c \u0633\u06cc\u0646\u0679 \u0627\u06cc\u0648\u0633\u0679\u0627\u0626\u06cc\u0633 \u0627\u0648\u0631 \u0633\u0627\u0628\u0627",
|
|
6251
6259
|
"common": "\u06a9\u06cc\u0631\u06cc\u0628\u06cc\u0646 \u0646\u06cc\u062f\u0631\u0644\u06cc\u0646\u0688\u0632"
|
|
@@ -7173,6 +7181,10 @@
|
|
|
7173
7181
|
"official": "Bouvet Adas\u0131",
|
|
7174
7182
|
"common": "Bouvet Adas\u0131"
|
|
7175
7183
|
},
|
|
7184
|
+
"ukr": {
|
|
7185
|
+
"official": "\u041e\u0441\u0442\u0440\u0456\u0432 \u0411\u0443\u0432\u0435",
|
|
7186
|
+
"common": "\u041e\u0441\u0442\u0440\u0456\u0432 \u0411\u0443\u0432\u0435"
|
|
7187
|
+
},
|
|
7176
7188
|
"urd": {
|
|
7177
7189
|
"official": "\u062c\u0632\u06cc\u0631\u06c1 \u0628\u0648\u0648\u06c1",
|
|
7178
7190
|
"common": "\u062c\u0632\u06cc\u0631\u06c1 \u0628\u0648\u0648\u06c1"
|
|
@@ -8800,8 +8812,8 @@
|
|
|
8800
8812
|
"common": "Fildi\u015fi Sahili"
|
|
8801
8813
|
},
|
|
8802
8814
|
"ukr": {
|
|
8803
|
-
"official": "\u041a\u043e\u0442
|
|
8804
|
-
"common": "\u041a\u043e\u0442
|
|
8815
|
+
"official": "\u041a\u043e\u0442\u002d\u0434\u2019\u0406\u0432\u0443\u0430\u0440",
|
|
8816
|
+
"common": "\u041a\u043e\u0442\u002d\u0434\u2019\u0406\u0432\u0443\u0430\u0440"
|
|
8805
8817
|
},
|
|
8806
8818
|
"urd": {
|
|
8807
8819
|
"official": "\u062c\u0645\u06c1\u0648\u0631\u06cc\u06c1 \u06a9\u0648\u062a \u062f\u06cc\u0648\u0627\u063a",
|
|
@@ -9210,8 +9222,8 @@
|
|
|
9210
9222
|
"common": "Kongo Demokratik Cumhuriyeti"
|
|
9211
9223
|
},
|
|
9212
9224
|
"ukr": {
|
|
9213
|
-
"official": "\
|
|
9214
|
-
"common": "\
|
|
9225
|
+
"official": "\u0414\u0435\u043c\u043e\u043a\u0440\u0430\u0442\u0438\u0447\u043d\u0430\u0020\u0420\u0435\u0441\u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0020\u041a\u043e\u043d\u0433\u043e",
|
|
9226
|
+
"common": "\u0414\u0435\u043c\u043e\u043a\u0440\u0430\u0442\u0438\u0447\u043d\u0430\u0020\u0420\u0435\u0441\u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0020\u041a\u043e\u043d\u0433\u043e"
|
|
9215
9227
|
},
|
|
9216
9228
|
"urd": {
|
|
9217
9229
|
"official": "\u062c\u0645\u06c1\u0648\u0631\u06cc \u062c\u0645\u06c1\u0648\u0631\u06cc\u06c1 \u06a9\u0627\u0646\u06af\u0648",
|
|
@@ -10753,6 +10765,10 @@
|
|
|
10753
10765
|
"official": "Cura\u00e7ao",
|
|
10754
10766
|
"common": "Cura\u00e7ao"
|
|
10755
10767
|
},
|
|
10768
|
+
"ukr": {
|
|
10769
|
+
"official": "\u041a\u044e\u0440\u0430\u0441\u0430\u043e",
|
|
10770
|
+
"common": "\u041a\u044e\u0440\u0430\u0441\u0430\u043e"
|
|
10771
|
+
},
|
|
10756
10772
|
"urd": {
|
|
10757
10773
|
"official": "\u0645\u0645\u0644\u06a9\u062a\u0650 \u06a9\u06cc\u0648\u0631\u0627\u0633\u0627\u0624",
|
|
10758
10774
|
"common": "\u06a9\u06cc\u0648\u0631\u0627\u0633\u0627\u0624"
|
|
@@ -11698,7 +11714,7 @@
|
|
|
11698
11714
|
"common": "Almanya"
|
|
11699
11715
|
},
|
|
11700
11716
|
"ukr": {
|
|
11701
|
-
"official": "\u041d\u0456\u043c\u0435\u0447\u0447\u0438\u043d\u0430",
|
|
11717
|
+
"official": "\u0424\u0435\u0434\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u0430 \u0420\u0435\u0441\u043f\u0443\u0431\u043b\u0456\u043a\u0430 \u041d\u0456\u043c\u0435\u0447\u0447\u0438\u043d\u0430",
|
|
11702
11718
|
"common": "\u041d\u0456\u043c\u0435\u0447\u0447\u0438\u043d\u0430"
|
|
11703
11719
|
},
|
|
11704
11720
|
"urd": {
|
|
@@ -13418,6 +13434,10 @@
|
|
|
13418
13434
|
"official": "Sahra Demokratik Arap Cumhuriyeti",
|
|
13419
13435
|
"common": "Sahra Demokratik Arap Cumhuriyeti"
|
|
13420
13436
|
},
|
|
13437
|
+
"ukr": {
|
|
13438
|
+
"official": "\u0417\u0430\u0445\u0456\u0434\u043d\u0430 \u0421\u0430\u0445\u0430\u0440\u0430",
|
|
13439
|
+
"common": "\u0417\u0430\u0445\u0456\u0434\u043d\u0430 \u0421\u0430\u0445\u0430\u0440\u0430"
|
|
13440
|
+
},
|
|
13421
13441
|
"urd": {
|
|
13422
13442
|
"official": "\u0635\u062d\u0631\u0627\u0648\u06cc \u0639\u0631\u0628 \u0639\u0648\u0627\u0645\u06cc \u062c\u0645\u06c1\u0648\u0631\u06cc\u06c1",
|
|
13423
13443
|
"common": "\u0645\u063a\u0631\u0628\u06cc \u0635\u062d\u0627\u0631\u0627"
|
|
@@ -15135,8 +15155,8 @@
|
|
|
15135
15155
|
"common": "Mikronezya"
|
|
15136
15156
|
},
|
|
15137
15157
|
"ukr": {
|
|
15138
|
-
"official": "\
|
|
15139
|
-
"common": "\
|
|
15158
|
+
"official": "\u0424\u0435\u0434\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u0456\u0020\u0428\u0442\u0430\u0442\u0438\u0020\u041c\u0456\u043a\u0440\u043e\u043d\u0435\u0437\u0456\u0457",
|
|
15159
|
+
"common": "\u0424\u0435\u0434\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u0456\u0020\u0428\u0442\u0430\u0442\u0438\u0020\u041c\u0456\u043a\u0440\u043e\u043d\u0435\u0437\u0456\u0457"
|
|
15140
15160
|
},
|
|
15141
15161
|
"urd": {
|
|
15142
15162
|
"official": "\u0631\u06cc\u0627\u0633\u062a\u06c1\u0627\u0626\u06d2 \u0648\u0641\u0627\u0642\u06cc\u06c1 \u0645\u0627\u0626\u06a9\u0631\u0648\u0646\u06cc\u0634\u06cc\u0627",
|
|
@@ -15509,8 +15529,8 @@
|
|
|
15509
15529
|
"common": "Birle\u015fik Krall\u0131k"
|
|
15510
15530
|
},
|
|
15511
15531
|
"ukr": {
|
|
15512
|
-
"official": "\
|
|
15513
|
-
"common": "\
|
|
15532
|
+
"official": "\u0421\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0435 \u041a\u043e\u0440\u043e\u043b\u0456\u0432\u0441\u0442\u0432\u043e \u0412\u0435\u043b\u0438\u043a\u043e\u0457 \u0411\u0440\u0438\u0442\u0430\u043d\u0456\u0457 \u0442\u0430 \u041f\u0456\u0432\u043d\u0456\u0447\u043d\u043e\u0457 \u0406\u0440\u043b\u0430\u043d\u0434\u0456\u0457",
|
|
15533
|
+
"common": "\u0412\u0435\u043b\u0438\u043a\u0430 \u0411\u0440\u0438\u0442\u0430\u043d\u0456\u044f"
|
|
15514
15534
|
},
|
|
15515
15535
|
"urd": {
|
|
15516
15536
|
"official": "\u0645\u0645\u0644\u06a9\u062a\u0650 \u0645\u062a\u062d\u062f\u06c1 \u0628\u0631\u0637\u0627\u0646\u06cc\u06c1 \u0639\u0638\u0645\u06cc \u0648 \u0634\u0645\u0627\u0644\u06cc \u0622\u0626\u0631\u0644\u06cc\u0646\u0688",
|
|
@@ -18912,6 +18932,10 @@
|
|
|
18912
18932
|
"official": "Heard Adas\u0131 ve McDonald Adalar\u0131",
|
|
18913
18933
|
"common": "Heard Adas\u0131 ve McDonald Adalar\u0131"
|
|
18914
18934
|
},
|
|
18935
|
+
"ukr": {
|
|
18936
|
+
"official": "\u041e\u0441\u0442\u0440\u0456\u0432 \u0413\u0435\u0440\u0434 \u0456 \u043e\u0441\u0442\u0440\u043e\u0432\u0438 \u041c\u0430\u043a\u0434\u043e\u043d\u0430\u043b\u044c\u0434",
|
|
18937
|
+
"common": "\u041e\u0441\u0442\u0440\u0456\u0432 \u0413\u0435\u0440\u0434 \u0456 \u043e\u0441\u0442\u0440\u043e\u0432\u0438 \u041c\u0430\u043a\u0434\u043e\u043d\u0430\u043b\u044c\u0434"
|
|
18938
|
+
},
|
|
18915
18939
|
"urd": {
|
|
18916
18940
|
"official": "\u062c\u0632\u06cc\u0631\u06c1 \u06c1\u0631\u0688 \u0648 \u062c\u0632\u0627\u0626\u0631 \u0645\u06a9\u0688\u0648\u0646\u0644\u0688",
|
|
18917
18941
|
"common": "\u062c\u0632\u06cc\u0631\u06c1 \u06c1\u0631\u0688 \u0648 \u062c\u0632\u0627\u0626\u0631 \u0645\u06a9\u0688\u0648\u0646\u0644\u0688"
|
|
@@ -19855,7 +19879,7 @@
|
|
|
19855
19879
|
"common": "Endonezya"
|
|
19856
19880
|
},
|
|
19857
19881
|
"ukr": {
|
|
19858
|
-
"official": "\u0406\u043d\u0434\u043e\u043d\u0435\u0437\u0456\u044f",
|
|
19882
|
+
"official": "\u0420\u0435\u0441\u043f\u0443\u0431\u043b\u0456\u043a\u0430 \u0406\u043d\u0434\u043e\u043d\u0435\u0437\u0456\u044f",
|
|
19859
19883
|
"common": "\u0406\u043d\u0434\u043e\u043d\u0435\u0437\u0456\u044f"
|
|
19860
19884
|
},
|
|
19861
19885
|
"urd": {
|
|
@@ -23356,8 +23380,8 @@
|
|
|
23356
23380
|
"common": "Kiribati"
|
|
23357
23381
|
},
|
|
23358
23382
|
"ukr": {
|
|
23359
|
-
"official": "
|
|
23360
|
-
"common": "
|
|
23383
|
+
"official": "\u041d\u0435\u0437\u0430\u043b\u0435\u0436\u043d\u0430 \u0456 \u0421\u0443\u0432\u0435\u0440\u0435\u043d\u043d\u0430 \u0420\u0435\u0441\u043f\u0443\u0431\u043b\u0456\u043a\u0430 \u041a\u0456\u0440\u0456\u0431\u0430\u0442\u0456",
|
|
23384
|
+
"common": "\u041a\u0456\u0440\u0456\u0431\u0430\u0442\u0456"
|
|
23361
23385
|
},
|
|
23362
23386
|
"urd": {
|
|
23363
23387
|
"official": "\u0633\u0644\u0637\u0646\u062a \u0622\u0632\u0627\u062f \u062c\u0645\u06c1\u0648\u0631\u06cc\u06c1 \u06a9\u06cc\u0631\u06cc\u0628\u0627\u062a\u06cc",
|
|
@@ -23917,6 +23941,10 @@
|
|
|
23917
23941
|
"zho": {
|
|
23918
23942
|
"official": "\u79d1\u7d22\u6c83\u5171\u548c\u56fd",
|
|
23919
23943
|
"common": "\u79d1\u7d22\u6c83"
|
|
23944
|
+
},
|
|
23945
|
+
"ukr": {
|
|
23946
|
+
"official": "\u0420\u0435\u0441\u043f\u0443\u0431\u043b\u0456\u043a\u0430 \u041a\u043e\u0441\u043e\u0432\u043e",
|
|
23947
|
+
"common": "\u041a\u043e\u0441\u043e\u0432\u043e"
|
|
23920
23948
|
}
|
|
23921
23949
|
},
|
|
23922
23950
|
"latlng": [42.666667, 21.166667],
|
|
@@ -24848,8 +24876,8 @@
|
|
|
24848
24876
|
"common": "Libya"
|
|
24849
24877
|
},
|
|
24850
24878
|
"ukr": {
|
|
24851
|
-
"official": "\u041b\u0456\u0432\u0456\
|
|
24852
|
-
"common": "\u041b\u0456\u0432\u0456\
|
|
24879
|
+
"official": "\u041b\u0456\u0432\u0456\u044f",
|
|
24880
|
+
"common": "\u041b\u0456\u0432\u0456\u044f"
|
|
24853
24881
|
},
|
|
24854
24882
|
"urd": {
|
|
24855
24883
|
"official": "\u0631\u06cc\u0627\u0633\u062a\u0650 \u0644\u06cc\u0628\u06cc\u0627",
|
|
@@ -28140,8 +28168,8 @@
|
|
|
28140
28168
|
"common": "Kuzey Makedonya"
|
|
28141
28169
|
},
|
|
28142
28170
|
"ukr": {
|
|
28143
|
-
"official": "\
|
|
28144
|
-
"common": "\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0456\u044f
|
|
28171
|
+
"official": "\u041f\u0456\u0432\u043d\u0456\u0447\u043d\u0430\u0020\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0456\u044f",
|
|
28172
|
+
"common": "\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0456\u044f"
|
|
28145
28173
|
},
|
|
28146
28174
|
"urd": {
|
|
28147
28175
|
"official": "\u062c\u0645\u06c1\u0648\u0631\u06cc\u06c1 \u0645\u0642\u062f\u0648\u0646\u06cc\u06c1",
|
|
@@ -28711,8 +28739,8 @@
|
|
|
28711
28739
|
"common": "Myanmar"
|
|
28712
28740
|
},
|
|
28713
28741
|
"ukr": {
|
|
28714
|
-
"official": "\u041c",
|
|
28715
|
-
"common": "\u041c"
|
|
28742
|
+
"official": "\u0420\u0435\u0441\u043f\u0443\u0431\u043b\u0456\u043a\u0430 \u0421\u043e\u044e\u0437\u0443 \u041c\u2019\u044f\u043d\u043c\u0430",
|
|
28743
|
+
"common": "\u041c\u2019\u044f\u043d\u043c\u0430"
|
|
28716
28744
|
},
|
|
28717
28745
|
"urd": {
|
|
28718
28746
|
"official": "\u0645\u062a\u062d\u062f\u06c1 \u062c\u0645\u06c1\u0648\u0631\u06cc\u06c1 \u0645\u06cc\u0627\u0646\u0645\u0627\u0631",
|
|
@@ -39368,8 +39396,8 @@
|
|
|
39368
39396
|
"common": "Saint Pierre ve Miquelon"
|
|
39369
39397
|
},
|
|
39370
39398
|
"ukr": {
|
|
39371
|
-
"official": "\u0421\u0435\u043d-\u041f",
|
|
39372
|
-
"common": "\u0421\u0435\u043d-\u041f"
|
|
39399
|
+
"official": "\u0421\u0435\u043d-\u041f'\u0454\u0440 \u0456 \u041c\u0456\u043a\u0435\u043b\u043e\u043d",
|
|
39400
|
+
"common": "\u0421\u0435\u043d-\u041f'\u0454\u0440 \u0456 \u041c\u0456\u043a\u0435\u043b\u043e\u043d"
|
|
39373
39401
|
},
|
|
39374
39402
|
"urd": {
|
|
39375
39403
|
"official": "\u0633\u06cc\u0646\u0679 \u067e\u06cc\u0626\u0631 \u0648 \u0645\u06cc\u06a9\u06cc\u0644\u0648\u0646",
|
|
@@ -39728,6 +39756,10 @@
|
|
|
39728
39756
|
"official": "G\u00fcney Sudan Cumhuriyeti",
|
|
39729
39757
|
"common": "G\u00fcney Sudan"
|
|
39730
39758
|
},
|
|
39759
|
+
"ukr": {
|
|
39760
|
+
"official": "\u0420\u0435\u0441\u043f\u0443\u0431\u043b\u0456\u043a\u0430 \u041f\u0456\u0432\u0434\u0435\u043d\u043d\u0438\u0439 \u0421\u0443\u0434\u0430\u043d",
|
|
39761
|
+
"common": "\u041f\u0456\u0432\u0434\u0435\u043d\u043d\u0438\u0439 \u0421\u0443\u0434\u0430\u043d"
|
|
39762
|
+
},
|
|
39731
39763
|
"urd": {
|
|
39732
39764
|
"official": "\u062c\u0645\u06c1\u0648\u0631\u06cc\u06c1 \u062c\u0646\u0648\u0628\u06cc \u0633\u0648\u0688\u0627\u0646",
|
|
39733
39765
|
"common": "\u062c\u0646\u0648\u0628\u06cc \u0633\u0648\u0688\u0627\u0646"
|
|
@@ -40867,8 +40899,8 @@
|
|
|
40867
40899
|
"common": "Esvatini"
|
|
40868
40900
|
},
|
|
40869
40901
|
"ukr": {
|
|
40870
|
-
"official": "\
|
|
40871
|
-
"common": "\
|
|
40902
|
+
"official": "\u0415\u0441\u0432\u0430\u0442\u0456\u043d\u0456",
|
|
40903
|
+
"common": "\u0415\u0441\u0432\u0430\u0442\u0456\u043d\u0456"
|
|
40872
40904
|
},
|
|
40873
40905
|
"urd": {
|
|
40874
40906
|
"official": "\u0645\u0645\u0644\u06a9\u062a\u0650 \u0633\u0648\u0627\u0632\u06cc \u0644\u06cc\u0646\u0688",
|
|
@@ -44167,8 +44199,8 @@
|
|
|
44167
44199
|
"common": "Tayvan"
|
|
44168
44200
|
},
|
|
44169
44201
|
"ukr": {
|
|
44170
|
-
"official": "\u0422\u0430\u0439\u0432\u0430\u043d\u044c
|
|
44171
|
-
"common": "\u0422\u0430\u0439\u0432\u0430\u043d\u044c
|
|
44202
|
+
"official": "\u0422\u0430\u0439\u0432\u0430\u043d\u044c",
|
|
44203
|
+
"common": "\u0422\u0430\u0439\u0432\u0430\u043d\u044c"
|
|
44172
44204
|
},
|
|
44173
44205
|
"urd": {
|
|
44174
44206
|
"official": "\u062c\u0645\u06c1\u0648\u0631\u06cc\u06c1 \u0686\u06cc\u0646 (\u062a\u0627\u0626\u06cc\u0648\u0627\u0646)",
|
|
@@ -44364,8 +44396,8 @@
|
|
|
44364
44396
|
"common": "Tanzanya"
|
|
44365
44397
|
},
|
|
44366
44398
|
"ukr": {
|
|
44367
|
-
"official": "\u0422\u0430\u043d\u0437\u0430\u043d\u0456\u044f
|
|
44368
|
-
"common": "\u0422\u0430\u043d\u0437\u0430\u043d\u0456\u044f
|
|
44399
|
+
"official": "\u0422\u0430\u043d\u0437\u0430\u043d\u0456\u044f",
|
|
44400
|
+
"common": "\u0422\u0430\u043d\u0437\u0430\u043d\u0456\u044f"
|
|
44369
44401
|
},
|
|
44370
44402
|
"urd": {
|
|
44371
44403
|
"official": "\u0645\u062a\u062d\u062f\u06c1 \u062c\u0645\u06c1\u0648\u0631\u06cc\u06c1 \u062a\u0646\u0632\u0627\u0646\u06cc\u06c1",
|
|
@@ -44909,6 +44941,10 @@
|
|
|
44909
44941
|
"official": "Amerika Birle\u015fik Devletleri K\u00fc\u00e7\u00fck D\u0131\u015f Adalar\u0131",
|
|
44910
44942
|
"common": "Amerika Birle\u015fik Devletleri K\u00fc\u00e7\u00fck D\u0131\u015f Adalar\u0131"
|
|
44911
44943
|
},
|
|
44944
|
+
"ukr": {
|
|
44945
|
+
"official": "\u041c\u0430\u043b\u0456\u0020\u0432\u0456\u0434\u0434\u0430\u043b\u0435\u043d\u0456\u0020\u043e\u0441\u0442\u0440\u043e\u0432\u0438\u0020\u0421\u0428\u0410",
|
|
44946
|
+
"common": "\u041c\u0430\u043b\u0456\u0020\u0432\u0456\u0434\u0434\u0430\u043b\u0435\u043d\u0456\u0020\u043e\u0441\u0442\u0440\u043e\u0432\u0438\u0020\u0421\u0428\u0410"
|
|
44947
|
+
},
|
|
44912
44948
|
"urd": {
|
|
44913
44949
|
"official": "\u0627\u0645\u0631\u06cc\u06a9\u06cc \u0686\u06be\u0648\u0679\u06d2 \u0628\u06cc\u0631\u0648\u0646\u06cc \u062c\u0632\u0627\u0626\u0631",
|
|
44914
44950
|
"common": "\u0627\u0645\u0631\u06cc\u06a9\u06cc \u0686\u06be\u0648\u0679\u06d2 \u0628\u06cc\u0631\u0648\u0646\u06cc \u062c\u0632\u0627\u0626\u0631"
|
|
@@ -46997,8 +47033,8 @@
|
|
|
46997
47033
|
"common": "Vietnam"
|
|
46998
47034
|
},
|
|
46999
47035
|
"ukr": {
|
|
47000
|
-
"official": "\u0412",
|
|
47001
|
-
"common": "\u0412"
|
|
47036
|
+
"official": "\u0412'\u0454\u0442\u043d\u0430\u043c",
|
|
47037
|
+
"common": "\u0412'\u0454\u0442\u043d\u0430\u043c"
|
|
47002
47038
|
},
|
|
47003
47039
|
"urd": {
|
|
47004
47040
|
"official": "\u0627\u0634\u062a\u0631\u0627\u06a9\u06cc \u062c\u0645\u06c1\u0648\u0631\u06cc\u06c1 \u0648\u06cc\u062a\u0646\u0627\u0645",
|
|
@@ -14,6 +14,7 @@ export interface ICountryItemProps {
|
|
|
14
14
|
customFlag?: (
|
|
15
15
|
country: ICountry
|
|
16
16
|
) => React.ReactElement | null | undefined;
|
|
17
|
+
countryItemComponent?: (country: ICountry) => React.ReactElement;
|
|
17
18
|
accessibilityLabel?: string;
|
|
18
19
|
accessibilityHint?: string;
|
|
19
20
|
allowFontScaling?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-country-select",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "🌍 React Native country picker with flags, search, TypeScript, i18n, and offline support. Lightweight, customizable, and designed with a modern UI.",
|
|
5
5
|
"main": "lib/index.tsx",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -39,7 +39,9 @@
|
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"registry": "https://registry.npmjs.org/"
|
|
41
41
|
},
|
|
42
|
-
"dependencies": {
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"react-native-safe-area-context": "*"
|
|
44
|
+
},
|
|
43
45
|
"devDependencies": {},
|
|
44
46
|
"peerDependencies": {
|
|
45
47
|
"react": "*",
|