Skip to content

🍴Add Styling Option for dropdown list item container and set correct type for text styles #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
128 changes: 69 additions & 59 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,62 +1,72 @@
import {ViewStyle, TextStyle} from 'react-native';

import React from "react";
import { ViewStyle, TextStyle } from "react-native";

export interface CountryCodeProps {
/**
* Selected Country Dial Code
*/
selected: string,
/**
* Function to set the country
*/
setSelected: React.Dispatch<React.SetStateAction<undefined>>,
/**
* Function to set the country
*/
setCountryDetails?: React.Dispatch<React.SetStateAction<undefined>>,
/**
* State variable for storing the phone number
*/
phone?: string,
/**
* Function to set the phone number state variable
*/
setPhone?: React.Dispatch<React.SetStateAction<undefined>>,
/**
* Style the Country Code Container
*/
countryCodeContainerStyles?: ViewStyle,
/**
* Style the text inside Country Code
*/
countryCodeTextStyles?: TextStyle,
/**
* Phone Text Input Styles
*/
phoneStyles?: ViewStyle,
/**
* URL for the search Icon
*/
searchIcon?: string,
/**
* URL for the close Icon
*/
closeIcon?: string,
/**
* Search Input Container Styles
*/
searchStyles?: ViewStyle,
/**
* Search Input Text Styles
*/
searchTextStyles?: TextStyle,
/**
* Search Dropdown Container Styles
*/
dropdownStyles?: ViewStyle,
/**
* Search Dropdown Text Styles
*/
dropdownTextStyles?: TextStyle
/**
* Selected Country Dial Code
*/
selected: string;
/**
* Function to set the country
*/
setSelected: React.Dispatch<React.SetStateAction<undefined>>;
/**
* Function to set the country
*/
setCountryDetails: React.Dispatch<React.SetStateAction<undefined>>;
/**
* State variable for storing the phone number
*/
phone?: string;
/**
* Function to set the phone number state variable
*/
setPhone?: React.Dispatch<React.SetStateAction<undefined>>;
/**
* Style the Country Code Container
*/
countryCodeContainerStyles?: ViewStyle;
/**
* Style the text inside Country Code
*/
countryCodeTextStyles?: TextStyle;
/**
* Phone Text Input Styles
*/
phoneStyles?: ViewStyle;
/**
* URL for the search Icon
*/
searchIcon?: string;
/**
* URL for the close Icon
*/
closeIcon?: string;
/**
* Search Input Container Styles
*/
searchStyles?: ViewStyle;
/**
* Search Input Text Styles
*/
searchTextStyles?: TextStyle;
/**
* Search Dropdown Container Styles
*/
dropdownStyles?: ViewStyle;
/**
* Search Dropdown Text Styles
*/
dropdownTextStyles?: TextStyle;
/**
* Search Dropdown List Item Styles
*/
dropdownTextContainerStyles?: ViewStyle;
}

}
export interface CountryCodeDropdownItemProps {
name: string;
dial_code: string;
code: string;
flag: string;
}
Loading