UNPKG

react-native-country-picker-modal-xkelxmc

Version:
23 lines 1.16 kB
import { jsx as _jsx } from "react/jsx-runtime"; import { CountryProvider, DEFAULT_COUNTRY_CONTEXT } from './CountryContext'; import { ThemeProvider, DEFAULT_THEME } from './CountryTheme'; import { CountryPicker } from './CountryPicker'; const Main = ({ theme, translation, ...props }) => { return (_jsx(ThemeProvider, { theme: { ...DEFAULT_THEME, ...theme }, children: _jsx(CountryProvider, { value: { ...DEFAULT_COUNTRY_CONTEXT, translation }, children: _jsx(CountryPicker, { ...props }) }) })); }; Main.defaultProps = { onSelect: () => { }, withEmoji: true, }; export default Main; export { getCountriesAsync as getAllCountries, getCountryCallingCodeAsync as getCallingCode, } from './CountryService'; export { CountryModal } from './CountryModal'; export { DARK_THEME, DEFAULT_THEME } from './CountryTheme'; export { CountryFilter } from './CountryFilter'; export { CountryList } from './CountryList'; export { FlagButton } from './FlagButton'; export { Flag } from './Flag'; export { HeaderModal } from './HeaderModal'; export { CountryModalProvider } from './CountryModalProvider'; export * from './types'; //# sourceMappingURL=index.js.map