react-native-swipeable-weekly-calendar
v1.0.4
Published
0.0.1
Downloads
4
Readme
react-native-swipeable-weekly-calendar
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 |