0.8.3 • Published 10 months ago

react-native-select-date-orenda v0.8.3

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

react-native-select-date-orenda

HN

Installation

1.Download package with npm or yarn

npm install react-native-select-date-orenda

yarn add react-native-select-date-orenda

2. Install

yarn add react-native-calendars 

Modal

Usage

import React, { useState } from 'react'
import { Button } from 'react-native'
import {  SelectDate,utils } from 'react-native-select-date-orenda';

export default function App() {
  const [date,setDate]=useState('18/01/2023')
  const [isVisible, setIsVisible] = useState(false)

  return (
    <>
     
      <SelectDate
        valuePicker={date && utils.convertDigitInDate(date)}
        isVisiblePick={isVisible}
        onPressValue={(date) => {
          setDate(date)
        }}
      />
      <Button title="Open" onPress={() => setIsVisible(true)} />
      <Button title="Close" onPress={() => setIsVisible(false)} />
       
    </>
  );
}

Props

PropTypeDescriptionRequired
valuePickerstringThe currently selected date. Example: 18/01/2023Yes
maxDatestringMaximum selectable date. Example: 24/01/2023No
minDatestringMinimum selectable date. Example: 10/01/2023No
hideYearbooleanIf true, hide select YearNo
hideMonthbooleanIf true, hide select monthNo
isVisiblePickbooleanBoolean indicating if modal should be open.Yes
convertDigitInDatefunctionconvert date input.No

Contributing

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

License

MIT


Made with create-react-native-library

0.8.3

10 months ago

0.8.2

10 months ago

0.8.1

10 months ago

0.7.0

10 months ago

0.6.0

11 months ago

0.5.0

11 months ago

0.4.0

11 months ago

0.3.0

11 months ago

0.2.0

11 months ago

0.1.0

11 months ago