react-native-week-strip
v0.3.1
Published
A simple week strip for React Native
Downloads
16
Readme
react-native-week-strip
A simple paginated week strip for React Native.
| iOS | Android | | ------------ | ---------------- | | | |
Installation
npm install react-native-week-strip
or if you're using Yarn
yarn add react-native-week-strip
Usage
import WeekStrip from 'react-native-week-strip';
// ...
export default function App() {
const [date, setDate] = React.useState(new Date('October 10, 2020 03:24:00'));
return (
<View>
<Text>Selected: {date.toDateString()}</Text>
<WeekStrip
startDate={new Date('September 15, 2020 03:24:00')}
endDate={new Date('October 15, 2020 03:24:00')}
date={date}
onDateChange={setDate}
allowSelectingFuture
/>
</View>
);
}
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT