0.4.1 • Published 6 years ago

react-native-country-currency-picker v0.4.1

Weekly downloads
7
License
MIT
Repository
github
Last release
6 years ago

react-native-country-currency-picker

A country-currency picker for React-Native

Demo

Installation

npm i --save react-native-country-currency-picker

Usage

import CountryCurrencyPicker from 'react-native-country-currency-picker';

API

PropTypeOptionalDefaultDescription
countriesarrayYes Array of country flags to render as options
onValueChangefuncNoCallback when item is selected. Called with the following: index and object { currency, country }
sizestring/numberYes48size of icons. One of 36, 48, 64
selectedValuestringYesDefault value
placeholderstringYesPlease SelectPlaceholder text to render when selectedValue does not exist
labelstring: country or currencyLabel to render
caretbooleanTrueShow/hide caret

Styles

PropTypeOptionalDefaultDescription
containerStyleobjectYesStyle of container
dropdownStyleobjectYesStyle of dropdown
iconStyleobjectYesStyle of flag icons
placeholderStyleobjectYesStyle of placeholder text
rowStyleobjectYesStyle of each option
rowLabelStyleobjectYesStyle of option label
placeholderContainerStyleobjectYesStyle of placeholder container