react-native-swipeable-weekly-calendar
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

react-native-swipeable-weekly-calendar

Version

GIF

Installation

$ npm install react-native-swipeable-weekly-calendar

or

$ yarn add react-native-swipeable-weekly-calendar

Usage

export const App: FC = () => {
  const [date, setDate] = useState(new Date());

  const pressDate = useCallback(
    (d: Date) => {
      setDate(d);
    },
    [setDate],
  );

  return (
    <View>
      <CalendarComponent
        date={date}
        onPressDate={pressDate}
        showMonth
        language="ja" // ja | en | ko | es
      />
    </View>
  );
};

Component API

Props Type Required
date Date true
language string false
selectedColor string false
showMonth boolean false
onPressDate function true

Readme

Keywords

Package Sidebar

Install

npm i react-native-swipeable-weekly-calendar

Weekly Downloads

2

Version

1.0.4

License

MIT

Unpacked Size

454 kB

Total Files

69

Last publish

Collaborators

  • poteboy