项目
在 GitHub 查看
hoangnm/react-native-week-view
关于
Week View Component for react-native
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
react-native-week-view
The week view component for react-native.
- Supported in Android and iOS
- Many user interactions supported: drag and drop events, edit events, swipe through pages, event press, grid press, etc
- Customizable styles
- Multiple locale support
Checkout the full documentation site, including guides, full API and known issues.

Installation
npm install --save react-native-week-view
or
yarn add react-native-week-view
Requirements: install peer dependencies react-native-gesture-handler >= 2.4.1 and react-native-reanimated >=2.0.0, which we use to provide smoother interactions and animations (e.g. drag and drop).
Basic usage
import WeekView from 'react-native-week-view';
const myEvents = [
{
id: 1,
description: 'Event',
startDate: new Date(2021, 3, 15, 12, 0),
endDate: new Date(2021, 3, 15, 12, 30),
color: 'blue',
// ... more properties if needed,
},
// More events...
];
const MyComponent = () => (
<WeekView
events={myEvents}
selectedDate={new Date(2021, 3, 15)}
numberOfDays={7}
/>
);
See the full documentation with more examples and details!
Changelog
API is still unstable, minor updates before v1.0.0 can include breaking changes, adhering to Semantic Versioning. See CHANGELOG.md for details.
Contributors
Made with contrib.rocks.
探索相关项目
加载中…