0.1.4 • Published 2 years ago
react-native-simple-timeline v0.1.4
react-native-simple-timeline
React Native Timeline
Installation
npm install react-native-simple-timeline
or
yarn add react-native-simple-timeline
Usage
import * as React from 'react';
import {SafeAreaView, View, Text } from 'react-native';
import Timeline from 'react-native-simple-timeline';
export default function App() {
return (
<SafeAreaView>
<View style={{ marginTop: '20%', marginHorizontal: '5%' }}>
<Text style={{ marginBottom: 20, fontWeight: 'bold', fontSize: 20 }}>Timeline Horizontal</Text>
<Timeline data={data} direction='horizontal' />
</View>
<View style={{ marginTop: '20%', padding: 20 }}>
<Text style={{ marginBottom: 20, fontWeight: 'bold', fontSize: 20 }}>Timeline Default</Text>
<Timeline data={data} />
</View>
</SafeAreaView>
)
}
const data = [
{
id: 0,
status: 'On-Progress',
date: '03-03-2023'
},
{
id: 1,
status: 'Paid',
date: '04-03-2023'
},
{
id: 3,
status: 'Finish',
date: '05-03-2023'
},
{
id: 3,
status: 'Finish',
date: '05-03-2023'
},
{
id: 3,
status: 'Finish',
date: '05-03-2023'
},
]
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library
absolute-pathJSONStreamabort-controlleracceptsacorn-walkacorn-jsxacornadd-streamagent-baseajvanseransi-alignansi-escapesaggregate-erroransi-fragmentsansi-regexansi-stylesappdirsjsanymatchargargparsearr-diffarr-unionarr-flattenarray-ifyarray-buffer-byte-lengtharray-uniquearray-includesarray-unionarray.prototype.maparray.prototype.flatmaparray.prototype.tosortedasaparrifyastral-regexassign-symbolsast-typesasyncasync-retryatobasync-limiteravailable-typed-arraysbabel-corebabel-jestbabel-plugin-istanbulbabel-plugin-polyfill-corejs3babel-plugin-jest-hoistbabel-plugin-polyfill-regeneratorbabel-plugin-polyfill-corejs2babel-preset-fbjsbabel-preset-jestbabel-plugin-syntax-trailing-function-commasbabel-preset-current-node-syntaxbalanced-matchbefore-after-hookbasebig-integerbase64-jsblboxenbplist-parserbrace-expansionbracesbrowserslistbundle-namebuffer-frombserbytesbuffercacheable-requestcacheable-lookupcache-basecallsitescall-bindcamelcasecaller-callsitecamelcase-keyscaller-pathchalkcaniuse-litechar-regexchardetci-infoclass-utilscjs-module-lexercli-spinnersclean-stackcli-cursorcli-boxescliuicli-widthclone-deepcoclonecollection-visitcolor-convertcollect-v8-coveragecolor-namecommand-existscommandercolorettecommondircompare-funccomponent-emittercompressiblecompressionconcat-mapconcat-streamconfig-chainconfigstoreconnectconventional-changelogconventional-changelog-atomconventional-changelog-angularconventional-changelog-codemirrorconventional-changelog-conventionalcommitsconventional-changelog-coreconventional-changelog-emberconventional-changelog-eslintconventional-changelog-expressconventional-changelog-preset-loaderconventional-changelog-jqueryconventional-changelog-jshintconventional-changelog-writerconventional-commits-parserconventional-commits-filterconventional-recommended-bumpconvert-source-mapcopy-descriptorcore-js-compatcore-util-iscosmiconfigcreate-requirecosmiconfig-typescript-loadercsstypecross-spawncrypto-random-stringcross-spawn-asyncdargsdateformatdata-uri-to-bufferdebugdayjsdecamelizedecamelize-keysdecode-uri-componentdecompress-responsedeep-extenddedentdeep-isdeepmergedefault-browserdefaultsdefault-browser-iddefer-to-connectdefine-lazy-propdefine-propertiesdefine-propertydenodeifydeldeprecated-react-native-prop-typesdestroydeprecationdepddegeneratordiffdetect-newlinediff-sequencesdoctrinedot-propdir-globeastasianwidthelectron-to-chromiumee-firstemitteryemoji-regexencodeurlenvinfoend-of-streamerror-exerrorhandleres-array-method-boxes-properlyerror-stack-parseres-abstractes-set-tostringtages-get-iteratores-shim-unscopableses-to-primitiveescaladeescape-htmlescape-goatescape-string-regexpeslint-config-prettiereslint-plugin-ft-flowescodegeneslint-plugin-eslint-commentseslint-plugin-prettiereslint-plugin-jesteslint-plugin-react-hookseslint-plugin-reacteslint-plugin-react-nativeeslint-scopeeslint-plugin-react-native-globalseslint-visitor-keysespreeesprimaesqueryesrecurseesutilsestraverseetagevent-target-shimexitexpand-bracketsexecaexpectextend-shallowexternal-editorfast-deep-equalextglobfast-json-stable-stringifyfast-difffast-globfast-levenshteinfast-xml-parserfetch-blobfb-watchmanfastqfile-uri-to-pathfill-rangefile-entry-cachefind-upfind-cache-dirflat-cachefiguresflow-parserfor-infinalhandlerfor-eachflattedformdata-polyfillform-data-encoderfragment-cachefreshfs-extrafs.realpathfunction-bindftpfunction.prototype.namefunctions-have-namesgensyncget-package-typeget-intrinsicget-caller-fileget-streamget-pkg-repoget-symbol-descriptionget-urigit-remote-origin-urlget-valuegit-semver-tagsgit-raw-commitsgit-upgit-url-parsegitconfiglocalglob-parentglobalsglobglobalthisglobal-dirsglobbygopdgotgrapheme-splitterhard-rejectiongraceful-fshas-bigintshandlebarshas-flaghashas-protohas-property-descriptorshas-symbolshas-tostringtaghas-valueshas-valuehermes-estreehas-yarnhermes-profile-transformerhermes-parserhtml-escaperhosted-git-infohttp-cache-semanticshttp-errorshttp-proxy-agenthttp2-wrapperhuman-signalshttps-proxy-agentieee754iconv-liteimage-sizeignoreimport-lazyimport-freshimport-localimurmurhashindent-stringinflightinheritsiniinternal-slotinquirerinterpretinvariantis-absoluteipis-argumentsis-accessor-descriptoris-array-bufferis-arrayishis-boolean-objectis-bigintis-ciis-bufferis-callableis-core-moduleis-data-descriptoris-descriptoris-date-objectis-directoryis-fullwidth-code-pointis-dockeris-extendableis-extglobis-git-repositoryis-generator-fnis-globis-git-dirtyis-installed-globallyis-interactiveis-mapis-inside-containeris-npmis-negative-zerois-number-objectis-numberis-objis-path-cwdis-plain-objis-path-insideis-relativeis-regexis-setis-plain-objectis-shared-array-bufferis-sshis-symbolis-streamis-text-pathis-stringis-typed-arrayis-unc-pathis-unicode-supportedis-typedarrayis-weakrefis-windowsis-wslisarrayisexeis-yarn-globalisobjectistanbul-lib-coverageistanbul-lib-instrumentistanbul-lib-reportistanbul-lib-source-mapsiterate-iteratoriterate-valueistanbul-reportsjest-circusjest-changed-filesjest-configjest-clijest-diffjest-docblockjest-eachjest-environment-nodejest-get-typejest-haste-mapjest-leak-detectorjest-matcher-utilsjest-pnp-resolverjest-message-utiljest-mockjest-regex-utiljest-resolvejest-resolve-dependenciesjest-runnerjest-runtimejest-serializerjest-utiljest-validatejest-snapshotjest-workerjest-watcherjetifierjoijs-sdsljs-tokensjsc-androidjs-yamljsescjscodeshiftjson-parse-better-errorsjson-parse-even-better-errorsjson-bufferjson-schema-traversejson-stable-stringify-without-jsonifyjson-stringify-safejsonfilejson5jsx-ast-utilsjsonparsekeyvkind-oflatest-versionkleurlevnlevenload-json-filelines-and-columnslodashlocate-pathlodash.debouncelodash.camelcaselodash.isfunctionlodash.ismatchlodash.kebabcaselodash.isplainobjectlodash.mergelodash.mergewithlodash.startcaselodash.snakecaselodash.uniqlodash.throttlelodash.upperfirstlog-symbolsloose-envifylogkittylru-cachelowercase-keysmake-dirmacos-releasemake-errormakeerrormap-objmap-cachememoize-onemap-visitmerge-streammeowmerge2metrometro-babel-transformermetro-cachemetro-configmetro-cache-keymetro-coremetro-file-mapmetro-hermes-compilermetro-inspector-proxymetro-minify-tersermetro-minify-uglifymetro-react-native-babel-transformermetro-react-native-babel-presetmetro-runtimemetro-resolvermetro-source-mapmetro-symbolicatemetro-transform-pluginsmetro-transform-workermimemicromatchmime-dbmime-typesmimic-responsemimic-fnminimatchmin-indentminimistminimist-optionsmixin-deepmkdirpmsnanomatchnatural-compare-litenatural-comparenegotiatorneo-asyncnew-github-release-urlnetmaskmute-streamnode-domexceptionnocachenice-trynode-fetchnode-int64node-dirnode-stream-zipnode-releasesnormalize-package-datanormalize-pathnullthrowsnormalize-urlnpm-run-pathob1object-assignobject-copyobject-keysobject-visitobject-inspectobject.entriesobject.assignobject.fromentriesobject.valuesobject.pickobject.hasownonceon-finishedonetimeoptionatororaopenon-headersos-namep-cancelableos-tmpdirp-locatep-limitp-finallypac-proxy-agentp-mappac-resolverp-trypackage-jsonparent-moduleparse-jsonparse-urlparse-pathparseurlpascalcasepath-keypath-existspath-parsepath-typepicocolorspath-is-absolutepicomatchpifypiratesprettierposix-character-classespkg-dirprettier-linter-helperspretty-formatprelude-lsprocess-nextick-argspromisepromise.allsettledproto-listpromptsprop-typesprotocolspseudomapproxy-from-envpunycodepumpproxy-agentqpupaqueue-microtaskquick-lrurcreact-devtools-corerange-parserraw-bodyreact-isreact-shallow-rendererreact-native-codegenreact-native-gradle-pluginread-pkg-upread-pkgreact-refreshreadlinereadable-streamrecastrechoirredentregenerateregenerator-runtimeregenerate-unicode-propertiesregexp.prototype.flagsregexpu-coreregenerator-transformregex-notregjsparserregistry-auth-tokenregistry-urlrequire-directoryrepeat-stringrepeat-elementresolverequire-from-stringrequire-main-filenameresolve-fromresolve-alpnresolve-globalresolve-cwdresolve.exportsresolve-urlresponselikerestore-cursorretretryreusifyrun-applescriptrun-parallelrimrafrun-asyncsafe-buffersafe-regexrxjssemverschedulersafe-regex-testsafer-buffersemver-diffsendserve-staticserialize-errorset-valuesetprototypeofset-blockingshebang-commandshelljsshallow-cloneshell-quoteshebang-regexsignal-exitside-channelslashsisteransismart-buffersnapdragon-nodeslice-ansisnapdragonsnapdragon-utilsockssource-map-resolvesocks-proxy-agentsource-mapsource-map-urlspdx-correctsource-map-supportspdx-exceptionsspdx-expression-parsespdx-license-idssplitsprintf-jssplit-stringsplit2stack-utilsstackframestacktrace-parserstatic-extendstatusesstdin-discarderstring-lengthstring-natural-comparestop-iteration-iteratorstring-widthstring.prototype.trimstring.prototype.trimendstring.prototype.matchallstring.prototype.trimstartstrip-ansistrip-bomstring_decoderstrip-eofstrip-json-commentsstrip-indentstrip-final-newlinesupports-colorstrnumsupports-hyperlinkssudo-promptsupports-preserve-symlinks-flagtempterminal-linktersertext-extensionstest-excludethroughthroattext-tabletmpthrough2to-fast-propertiestitleizetmplto-regex-rangeto-object-pathto-regextoidentifiertrim-newlinestr46ts-nodetype-checktslibtsutilstype-festtype-detecttypedarray-to-buffertyped-array-lengthtypedarrayuglify-esunbox-primitiveuglify-jsunc-path-regexunicode-canonical-property-names-ecmascriptunicode-match-property-value-ecmascriptunicode-property-aliases-ecmascriptunicode-match-property-ecmascriptunique-stringunion-valueuniversal-user-agentuniversalifyunpipeuntildifyunset-valueupdate-browserslist-dbupdate-notifierurixurl-joinmodify-valuesuri-jsutils-mergeutil-deprecateuseuse-sync-external-storev8-compile-cache-libv8-to-istanbulvalidate-npm-package-licensevlqvaryvm2webidl-conversionswcwidthwalkerweb-streams-polyfillwhatwg-urlwhatwg-fetchwhichwhich-boxed-primitivewhich-typed-arraywhich-modulewidest-linewildcard-matchword-wrapwindows-releasewordwrapwrap-ansiwrappywrite-file-atomicwsxdg-basedirxtendxdg-default-browseryallistxregexpyargs-parsery18nyargsyamlynyocto-queue