0.0.5 • Published 2 years ago

@enkeledi/react-native-week-month-date-picker v0.0.5

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

React Native Week Month Date Picker

Date picker with a week and month view

This is a fork of noona-hq/react-native-week-month-date-picker

Installation

npm install react-native-week-month-date-picker

Dependencies

This library needs these dependencies to be installed as peer dependencies in your project:

npm install react-native-reanimated react-native-gesture-handler react-native-safe-area-context date-fns

follow react-native-reanimated, react-native-gesture-handler, and react-native-safe-area-context installation guide to install native dependencies properly.

Usage

import { addDays } from 'date-fns';
import * as React from 'react';
import { SafeAreaView, StyleSheet, Text, View } from 'react-native';
import { DatePicker } from 'react-native-week-month-date-picker';

export default function App() {
  const minDate = new Date();
  const [selectedDate, setSelectedDate] = React.useState(new Date());

  return (
    <SafeAreaView style={{ flex: 1}}>
      <DatePicker
        minDate={minDate}
        maxDate={addDays(minDate, 120)}
        markedDates={[minDate, addDays(new Date(), 2)]}
        selectedDate={selectedDate}
        onDateChange={(date) => setSelectedDate(date)}
        disabledDates={[addDays(new Date(), 1), addDays(new Date(), 3)]}
        allowsPastDates={false}
        locale="en"
        theme={{
          primaryColor: 'purple',
        }}
      >
        <View>
          <Text>Timeslots</Text>
          <Text>{selectedDate.toString()}</Text>
        </View>
      </DatePicker>
    </SafeAreaView>
  );
}

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

@enkeledi/react-native-week-month-date-pickerabababort-controllerabsolute-pathacceptsacornacorn-globalsacorn-jsxacorn-walkadd-streamagent-baseaggregate-errorajvanseransi-alignansi-colorsansi-escapesansi-fragmentsansi-regexansi-stylesanymatchappdirsjsargparsearr-diffarr-flattenarr-unionarray-filterarray-ifyarray-includesarray-maparray-reducearray-unionarray-uniquearray.prototype.flatmaparrifyasapassign-symbolsast-typesastral-regexasyncasync-limiterasync-retryasynckitat-least-nodeatobbabel-corebabel-eslintbabel-jestbabel-plugin-dynamic-import-nodebabel-plugin-istanbulbabel-plugin-jest-hoistbabel-plugin-polyfill-corejs2babel-plugin-polyfill-corejs3babel-plugin-polyfill-regeneratorbabel-plugin-syntax-trailing-function-commasbabel-preset-current-node-syntaxbabel-preset-fbjsbabel-preset-jestbalanced-matchbasebase64-jsbefore-after-hookbig-integerblboxenbplist-creatorbplist-parserbrace-expansionbracesbrowser-process-hrtimebrowserslistbserbufferbuffer-frombytescache-basecacheable-lookupcacheable-requestcall-bindcaller-callsitecaller-pathcallsitescamelcasecamelcase-keyscaniuse-litecapture-exitchalkchar-regexchardetci-infocjs-module-lexerclass-utilsclean-stackcli-boxescli-cursorcli-spinnerscli-widthcliuicloneclone-deepclone-responsecocollect-v8-coveragecollection-visitcolor-convertcolor-namecolorettecolorscombined-streamcommand-existscommandercommondircompare-funccomponent-emittercompressiblecompressionconcat-mapconcat-streamconfigstoreconnectconventional-changelogconventional-changelog-angularconventional-changelog-atomconventional-changelog-codemirrorconventional-changelog-conventionalcommitsconventional-changelog-coreconventional-changelog-emberconventional-changelog-eslintconventional-changelog-expressconventional-changelog-jqueryconventional-changelog-jshintconventional-changelog-preset-loaderconventional-changelog-writerconventional-commits-filterconventional-commits-parserconventional-recommended-bumpconvert-source-mapcopy-descriptorcore-jscore-js-compatcore-util-iscosmiconfigcross-fetchcross-spawncrypto-random-stringcssomcssstylecsstypedargsdata-urlsdateformatdayjsdebugdecamelizedecamelize-keysdecimal.jsdecode-uri-componentdecompress-responsededentdeep-extenddeep-isdeepmergedefaultsdefer-to-connectdefine-propertiesdefine-propertydeldelayed-streamdenodeifydepddeprecationdestroydetect-newlinediff-sequencesdir-globdoctrinedomexceptiondot-propduplexer3ee-firstelectron-to-chromiumemitteryemoji-regexencodeurlend-of-streamenquirerenvinfoerror-exerror-stack-parsererrorhandleres-abstractes-to-primitiveescaladeescape-goatescape-htmlescape-string-regexpescodegeneslint-plugin-eslint-commentseslint-plugin-flowtypeeslint-plugin-jesteslint-plugin-reacteslint-plugin-react-hookseslint-plugin-react-nativeeslint-plugin-react-native-globalseslint-scopeeslint-utilseslint-visitor-keysespreeesprimaesqueryesrecurseestraverseesutilsetagevent-target-shimexec-shexecaexitexpand-bracketsexpectextend-shallowexternal-editorextglobfast-deep-equalfast-difffast-globfast-json-stable-stringifyfast-levenshteinfastqfb-watchmanfbjsfbjs-css-varsfiguresfile-entry-cachefill-rangefilter-objfinalhandlerfind-cache-dirfind-upflat-cacheflattedflow-parserfor-inform-datafragment-cachefreshfs-extrafs.realpathfseventsfunction-bindfunctional-red-black-treegensyncget-caller-fileget-intrinsicget-package-typeget-pkg-repoget-stdinget-streamget-symbol-descriptionget-valuegit-raw-commitsgit-remote-origin-urlgit-semver-tagsgit-upgit-url-parsegitconfiglocalglobglob-parentglobal-dirsglobalsglobbygotgraceful-fsgrowlyhandlebarshard-rejectionhashas-bigintshas-flaghas-symbolshas-tostringtaghas-valuehas-valueshas-yarnhermes-enginehermes-parserhermes-profile-transformerhoist-non-react-staticshosted-git-infohtml-encoding-snifferhtml-escaperhttp-cache-semanticshttp-errorshttp-proxy-agenthttp2-wrapperhttps-proxy-agenthuman-signalsiconv-liteieee754ignoreimage-sizeimport-cwdimport-freshimport-fromimport-lazyimport-localimurmurhashindent-stringinflightinheritsiniinquirerinternal-slotinterpretinvariantipis-absoluteis-accessor-descriptoris-arrayishis-bigintis-boolean-objectis-bufferis-callableis-ciis-core-moduleis-data-descriptoris-date-objectis-descriptoris-directoryis-dockeris-extendableis-extglobis-fullwidth-code-pointis-generator-fnis-git-dirtyis-git-repositoryis-globis-installed-globallyis-interactiveis-negative-zerois-npmis-numberis-number-objectis-objis-path-cwdis-path-insideis-plain-objis-plain-objectis-potential-custom-element-nameis-regexis-relativeis-shared-array-bufferis-sshis-streamis-stringis-symbolis-text-pathis-typedarrayis-unc-pathis-unicode-supportedis-weakrefis-windowsis-wslis-yarn-globalisarrayisexeisobjectistanbul-lib-coverageistanbul-lib-instrumentistanbul-lib-reportistanbul-lib-source-mapsistanbul-reportsjest-changed-filesjest-clijest-configjest-diffjest-docblockjest-eachjest-environment-jsdomjest-environment-nodejest-get-typejest-haste-mapjest-jasmine2jest-leak-detectorjest-matcher-utilsjest-message-utiljest-mockjest-pnp-resolverjest-regex-utiljest-resolvejest-resolve-dependenciesjest-runnerjest-runtimejest-serializerjest-snapshotjest-utiljest-validatejest-watcherjest-workerjetifierjoijs-tokensjs-yamljsc-androidjscodeshiftjsdomjsescjson-bufferjson-parse-better-errorsjson-parse-even-better-errorsjson-schema-traversejson-stable-stringify-without-jsonifyjson-stringify-safejson5jsonfilejsonifyjsonparseJSONStreamjsx-ast-utilskeyvkind-ofklawkleurlatest-versionlevenlevnlines-and-columnsload-json-filelocate-pathlodashlodash.debouncelodash.isequallodash.ismatchlodash.mergelodash.throttlelodash.truncatelog-symbolslogkittyloose-envifylowercase-keyslru-cachemacos-releasemake-dirmakeerrormap-cachemap-objmap-visitmeowmerge-streammerge2metrometro-babel-registermetro-babel-transformermetro-cachemetro-cache-keymetro-configmetro-coremetro-hermes-compilermetro-inspector-proxymetro-minify-uglifymetro-react-native-babel-presetmetro-react-native-babel-transformermetro-resolvermetro-runtimemetro-source-mapmetro-symbolicatemetro-transform-pluginsmetro-transform-workermicromatchmimemime-dbmime-typesmimic-fnmimic-responsemin-indentminimatchminimistminimist-optionsmixin-deepmkdirpmockdatemodify-valuesmsmute-streamnanomatchnatural-comparenegotiatorneo-asyncnew-github-release-urlnice-trynocachenode-dirnode-fetchnode-int64node-notifiernode-releasesnode-stream-zipnormalize-package-datanormalize-pathnormalize-urlnpm-run-pathnullthrowsnwsapiob1object-assignobject-copyobject-inspectobject-keysobject-visitobject.assignobject.entriesobject.fromentriesobject.hasownobject.pickobject.valueson-finishedon-headersonceonetimeopenoptionatoroptionsoraos-nameos-tmpdirp-cancelablep-each-seriesp-finallyp-limitp-locatep-mapp-trypackage-jsonparent-moduleparse-jsonparse-pathparse-urlparse5parseurlpascalcasepath-existspath-is-absolutepath-keypath-parsepath-typepicocolorspicomatchpifypiratespkg-dirplistposix-character-classesprelude-lsprepend-fileprepend-httpprettier-linter-helperspretty-formatprocess-nextick-argsprogresspromisepromptsprop-typesprotocolspslpumppunycodepupaqqsquery-stringqueue-microtaskquick-lrurange-parserrcreact-devtools-corereact-freezereact-isreact-native-codegenreact-native-screensreact-refreshread-pkgread-pkg-upreadable-streamreadlinerecastrechoirredentregenerateregenerate-unicode-propertiesregenerator-runtimeregenerator-transformregex-notregexp.prototype.flagsregexppregexpu-coreregistry-auth-tokenregistry-urlregjsgenregjsparserremove-trailing-separatorrepeat-elementrepeat-stringrequire-directoryrequire-from-stringrequire-main-filenameresolveresolve-alpnresolve-cwdresolve-fromresolve-globalresolve-urlresponselikerestore-cursorretretryreusifyrimrafrsvprun-asyncrun-parallelrxjssafe-buffersafe-regexsafer-buffersanesaxsaxesschedulersemversemver-diffsendserialize-errorserve-staticset-blockingset-valuesetimmediatesetprototypeofshallow-cloneshebang-commandshebang-regexshell-quoteshelljsshellwordsside-channelsignal-exitsimple-plistsisteransislashslice-ansisnapdragonsnapdragon-nodesnapdragon-utilsource-mapsource-map-resolvesource-map-supportsource-map-urlspdx-correctspdx-exceptionsspdx-expression-parsespdx-license-idssplitsplit-on-firstsplit-stringsplit2sprintf-jsstack-utilsstackframestacktrace-parserstatic-extendstatusesstream-buffersstrict-uri-encodestring_decoderstring-hash-64string-lengthstring-widthstring.prototype.matchallstring.prototype.trimendstring.prototype.trimstartstrip-ansistrip-bomstrip-eofstrip-final-newlinestrip-indentstrip-json-commentssudo-promptsupports-colorsupports-hyperlinkssupports-preserve-symlinks-flagsymbol-treetabletemptemp-dirtemp-writeterminal-linktest-excludetext-extensionstext-tablethroatthroughthrough2tmptmplto-fast-propertiesto-object-pathto-readable-streamto-regexto-regex-rangetoidentifiertough-cookietr46trim-newlinestslibtsutilstype-checktype-detecttype-festtypedarraytypedarray-to-bufferua-parser-jsuglify-esuglify-jsultronunbox-primitiveunc-path-regexunicode-canonical-property-names-ecmascriptunicode-match-property-ecmascriptunicode-match-property-value-ecmascriptunicode-property-aliases-ecmascriptunion-valueunique-stringuniversal-user-agentuniversalifyunpipeunset-valueupdate-notifieruri-jsurixurl-joinurl-parse-laxuseuse-subscriptionutil-deprecateutils-mergeuuidv8-compile-cachev8-to-istanbulvalidate-npm-package-licensevaryvlqw3c-hr-timew3c-xmlserializerwalkerwarn-oncewcwidthwebidl-conversionswhatwg-encodingwhatwg-fetchwhatwg-mimetypewhatwg-urlwhichwhich-boxed-primitivewhich-modulewidest-linewindows-releaseword-wrapwordwrapwrap-ansiwrappywrite-file-atomicwsxcodexdg-basedirxml-name-validatorxmlbuilderxmlcharsxmldocxtendy18nyallistyamlyargsyargs-parseryocto-queue
0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago