Skip to content

Commit e825998

Browse files
committed
setCountry as not required and TextStyle updated
1 parent 2dcfd5b commit e825998

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {ViewStyle} from 'react-native';
1+
import {ViewStyle, TextStyle} from 'react-native';
22

33

44
export interface CountryCodeProps {
@@ -13,7 +13,7 @@ export interface CountryCodeProps {
1313
/**
1414
* Function to set the country
1515
*/
16-
setCountryDetails: React.Dispatch<React.SetStateAction<undefined>>,
16+
setCountryDetails?: React.Dispatch<React.SetStateAction<undefined>>,
1717
/**
1818
* State variable for storing the phone number
1919
*/
@@ -29,7 +29,7 @@ export interface CountryCodeProps {
2929
/**
3030
* Style the text inside Country Code
3131
*/
32-
countryCodeTextStyles?: ViewStyle,
32+
countryCodeTextStyles?: TextStyle,
3333
/**
3434
* Phone Text Input Styles
3535
*/

index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React,{JSXElementConstructor} from 'react';
2-
import { View, Text, StyleSheet,FlatList, TouchableOpacity, Animated, TextInput, Image, ViewStyle } from 'react-native';
2+
import { View, Text, StyleSheet,FlatList, TouchableOpacity, Animated, TextInput, Image, ViewStyle, TextStyle } from 'react-native';
33
import { countries, _getFlag } from './_inc/_lib/enhanced';
44

55

@@ -15,7 +15,7 @@ interface CountryCodeProps {
1515
/**
1616
* Function to set the country
1717
*/
18-
setCountryDetails: React.Dispatch<React.SetStateAction<undefined>>,
18+
setCountryDetails?: React.Dispatch<React.SetStateAction<undefined>>,
1919
/**
2020
* State variable for storing the phone number
2121
*/
@@ -31,7 +31,7 @@ interface CountryCodeProps {
3131
/**
3232
* Style the text inside Country Code
3333
*/
34-
countryCodeTextStyles?: ViewStyle,
34+
countryCodeTextStyles?: TextStyle,
3535
/**
3636
* Phone Text Input Styles
3737
*/

0 commit comments

Comments
 (0)