0.3.1 • Published 4 years ago

react-native-week-strip v0.3.1

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

react-native-week-strip

A simple paginated week strip for React Native.

iOSAndroid
npm.ionpm.io

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

0.3.0

4 years ago

0.3.1

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago