0.0.6 • Published 5 years ago

react-native-week-selector v0.0.6

Weekly downloads
14
License
MIT
Repository
github
Last release
5 years ago

react-native-week-selector

A simple and customisable week selector

code style: prettier NPM Version NPM Downloads

Quick Access

  • Installation
  • Preview
  • Usage
  • Properties
  • Contributing

Installation

Install the module with:

npm install react-native-week-selector --save

Preview

Try it on Expo

Usage

Simply import the component

import WeekSelector from 'react-native-week-selector';

Then use as follows

<WeekSelector />
Top

Properties

PropDescriptionDefault
dateSet initial datenew Date()
containerStyleAdditional style for the containerundefined
selectorContainerStyleAdditional style for the selector containersundefined
dateContainerStyleAdditional style for the date containerundefined
textStyleAdditional style for the date textundefined
whitelistRange2 values indicating the earliest/latest the user can change to[]
onWeekChangedEvent triggered when changing weekundefined
weekStartsOnWhich day does the week start on1 (Monday)
renderPreviousSelectorOverride the default previous selectorundefined
renderNextSelectorOverride the default next selectorundefined
dayFormatDisplay format for the dayDD (05)
monthFormatDisplay format for the monthMMMM (September)
Top

Contributing

Feel free to do pull requests if a certain feature you want is missing. We accept all PR's that are enhancements to the project.

Top