1.0.0 • Published 2 years ago

react-native-custom-selected-ex v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

react-native-custom-selected-ex

Simple react-native selected for year and category

Installation

npm install react-native-custom-selected-ex

Usage

import { Selector } from "react-native-custom-selected-ex";

// ...

 <Selector
        selectedValue={yearSelected}
        minYear={1900}
        maxYear={2020}
        mode="dialog"
        onChange={(year) => setYearSelected(year)}
        stylePicker={{}}
        // style from the main view, but the father of it
        styleView={{}}
        // If you want a custom component aside of the picker, you can pass it as a prop
        // iconChildren={<Icon name="calendar" size={20} color="black" />}
        // IF you want a custom array, you can pass it as a prop, this will overwrite the min and max year array
        //fullArray={[10, `1231`, 12]}
        // If you want hide de native icon of the picker, you can pass it as a prop
        transparentPickIcon={false}
      />

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT