0.2.3 • Published 1 year ago

react-native-check-component v0.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

react-native-check-component

This is check component compatiable with both android and ios

Installation

npm install react-native-check-component

Note:

Do not use version 0.1.0

Demo:

npm.io

Usage:

import * as React from 'react';

import { StyleSheet, View } from 'react-native';
import { CheckButton } from 'react-native-check-component';

export default function App() {
  const [checked,setChecked]=React.useState(false)

  return (
    <View style={styles.container}>
      <CheckButton 
        checked={checked} 
        onPress={()=>setChecked(!checked)} 
        imageSource={require('./icon/check.png')} 
        containerStyle={styles.checkButtonContainer}
        imageStyle={styles.image}
        />
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    alignItems: 'center',
    justifyContent: 'center',
  },
  box: {
    width: 60,
    height: 60,
    marginVertical: 20,
  },
  checkButtonContainer:{
      width:25,
      height:25,
      borderColor:'red',
      borderWidth:2,
  },
  image:{
    height:15,
    width:15
  }
});

Props:

PropsParamsisRequireDescription
checkedBooleanYesThe checked prop determines whether your checked image is visible.
imageSourceImageSourceYesImage for checkd component
containerStyleViewStyleNoStyle your check component container
imageStyleImageStyleNoStyle your image style that is used in the component
onPressFunctionyesThe onShow prop allows passing a function that will be called on pressing the component.

Contact me

You can send your issues and feedback on my email saurabhsrg19oct@gmail.com or Join the discord server here

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

acceptsJSONStreamabort-controllerabsolute-pathacornacorn-jsxacorn-walkadd-streamagent-baseaggregate-errorajvanseransi-alignansi-escapesansi-fragmentsansi-stylesansi-regexanymatchappdirsjsargargparsearr-diffarr-unionarr-flattenarray-ifyarray-includesarray-unionarray-uniquearray.prototype.flatmaparray.prototype.maparray.prototype.tosortedarrifyasapassign-symbolsast-typesastral-regexasyncasync-limiterasync-retrybabel-jestatobbabel-corebabel-plugin-istanbulavailable-typed-arraysbabel-plugin-jest-hoistbabel-plugin-polyfill-corejs2babel-plugin-polyfill-corejs3babel-plugin-polyfill-regeneratorbabel-plugin-syntax-trailing-function-commasbabel-preset-current-node-syntaxbabel-preset-fbjsbalanced-matchbabel-preset-jestbase64-jsbasebefore-after-hookblbrace-expansionboxenbrowserslistbracesbufferbserbytescache-basecacheable-requestbuffer-fromcacheable-lookupcall-bindcaller-callsitecaller-pathcallsitescamelcasecamelcase-keyscaniuse-litechalkchar-regexchardetci-infocjs-module-lexerclass-utilsclean-stackcli-cursorcli-boxescli-spinnerscli-widthcliuiclonecoclone-deepcolor-convertcollect-v8-coveragecollection-visitcolor-namecolorettecommand-existscommandercommondircompare-funccomponent-emittercompressiblecompressionconcat-mapconcat-streamconfig-chainconfigstoreconnectconventional-changelog-angularconventional-changelogconventional-changelog-atomconventional-changelog-codemirrorconventional-changelog-coreconventional-changelog-conventionalcommitsconventional-changelog-emberconventional-changelog-eslintconventional-changelog-expressconventional-changelog-jqueryconventional-changelog-jshintconventional-changelog-preset-loaderconventional-changelog-writerconventional-commits-filterconventional-commits-parserconventional-recommended-bumpconvert-source-mapcopy-descriptorcore-js-compatcore-util-iscosmiconfigcosmiconfig-typescript-loadercreate-requirecross-spawncrypto-random-stringcsstypedargsdata-uri-to-bufferdayjsdateformatdebugdecamelizedecompress-responsededentdeep-extenddecamelize-keysdeep-isdeepmergedefaultsdefer-to-connectdefine-lazy-propdecode-uri-componentdefine-propertiesdefine-propertydegeneratordeldenodeifydepddeprecationdestroydiff-sequencesdiffdetect-newlinedir-globdot-propeastasianwidthdoctrineee-firstelectron-to-chromiumemitteryemoji-regexencodeurlend-of-streamenvinfoerror-exerrorhandlererror-stack-parseres-abstractes-array-method-boxes-properlyes-get-iteratores-set-tostringtages-shim-unscopablesescaladeescape-goatescape-string-regexpes-to-primitiveescodegeneslint-plugin-eslint-commentsescape-htmleslint-plugin-ft-floweslint-plugin-jesteslint-plugin-reacteslint-plugin-react-hookseslint-plugin-react-native-globalseslint-scopeeslint-plugin-react-nativeeslint-utilsesprimaesqueryespreeeslint-visitor-keysesrecurseestraverseesutilsetagevent-target-shimexecaexitexpand-bracketsexpectextend-shallowexternal-editorfast-deep-equalextglobfast-difffast-json-stable-stringifyfast-globfast-levenshteinfastqfb-watchmanfetch-blobfiguresfile-entry-cachefile-uri-to-pathfill-rangefinalhandlerfind-cache-dirfind-upflat-cacheflattedflow-parserfor-eachform-data-encoderfor-informdata-polyfillfragment-cachefreshfs-extrafs.realpathftpfunction-bindfunction.prototype.nameget-caller-fileget-intrinsicget-package-typeget-pkg-repoget-streamfunctions-have-namesget-symbol-descriptionget-urigensyncget-valuegit-raw-commitsgit-remote-origin-urlgit-semver-tagsgit-upgit-url-parsegitconfiglocalglobglob-parentglobal-dirsglobalsglobalthisglobbygopdgotgraceful-fsgrapheme-splitterhandlebarshard-rejectionhashas-bigintshas-flaghas-protohas-property-descriptorshas-symbolshas-tostringtaghas-valuehas-valueshas-yarnhermes-estreehermes-parserhermes-profile-transformerhosted-git-infohttp-errorshtml-escaperhttp-cache-semanticshttp-proxy-agenthttp2-wrapperhttps-proxy-agenthuman-signalsiconv-liteieee754ignoreimage-sizeimport-freshimport-lazyimport-localimurmurhashindent-stringinflightinheritsinquireriniinternal-slotinvariantinterpretipis-absoluteis-accessor-descriptoris-argumentsis-array-bufferis-arrayishis-bigintis-boolean-objectis-bufferis-callableis-data-descriptoris-date-objectis-descriptoris-ciis-directoryis-dockeris-extendableis-core-moduleis-extglobis-fullwidth-code-pointis-generator-fnis-git-dirtyis-git-repositoryis-globis-installed-globallyis-mapis-interactiveis-npmis-negative-zerois-numberis-number-objectis-objis-path-cwdis-path-insideis-plain-objis-plain-objectis-regexis-relativeis-shared-array-bufferis-setis-sshis-streamis-stringis-symbolis-text-pathis-typed-arrayis-typedarrayis-unc-pathis-unicode-supportedis-weakrefis-windowsis-wslis-yarn-globalisarrayisexeisobjectistanbul-lib-coverageistanbul-lib-instrumentistanbul-lib-reportistanbul-lib-source-mapsistanbul-reportsiterate-iteratoriterate-valuejest-changed-filesjest-circusjest-clijest-configjest-diffjest-docblockjest-environment-nodejest-eachjest-get-typejest-haste-mapjest-leak-detectorjest-matcher-utilsjest-message-utiljest-mockjest-pnp-resolverjest-regex-utiljest-resolvejest-resolve-dependenciesjest-runnerjest-runtimejest-serializerjest-snapshotjest-watcherjest-workerjetifierjest-utiljoijs-sdsljest-validatejs-tokensjs-yamljsc-androidjscodeshiftjsescjson-bufferjson-parse-better-errorsjson-parse-even-better-errorsjson-schema-traversejson-stable-stringify-without-jsonifyjson-stringify-safejson5jsonfilejsonparsekeyvjsx-ast-utilskind-ofklawkleurlatest-versionlevenlevnlines-and-columnsload-json-filelocate-pathlodashlodash.camelcaselodash.isfunctionlodash.ismatchlodash.debouncelodash.isplainobjectlodash.kebabcaselodash.mergelodash.mergewithlodash.snakecaselodash.startcaselodash.uniqlodash.throttlelodash.upperfirstlog-symbolslogkittyloose-envifylowercase-keyslru-cachemacos-releasemake-errormake-dirmakeerrormap-cachemap-objmap-visitmemoize-onemeowmerge-streammetromerge2metro-babel-transformermetro-cachemetro-cache-keymetro-configmetro-coremetro-file-mapmetro-hermes-compilermetro-inspector-proxymetro-minify-uglifymetro-react-native-babel-transformermetro-resolvermetro-react-native-babel-presetmetro-transform-pluginsmetro-transform-workermimemicromatchmetro-runtimemime-typesmime-dbmimic-fnmimic-responsemin-indentminimatchminimistmetro-source-mapminimist-optionsmkdirpmixin-deepmodify-valuesmsmute-streammetro-symbolicatenanomatchnatural-comparenatural-compare-litenegotiatorneo-asyncnetmasknew-github-release-urlnice-trynocachenode-dirnode-domexceptionnode-int64node-stream-zipnode-releasesnode-fetchnormalize-package-datanormalize-pathnpm-run-pathnullthrowsnormalize-urlob1object-inspectobject-assignobject-copyobject-keysobject-visitobject.assignobject.fromentriesobject.entriesobject.hasownon-finishedobject.valuesobject.pickon-headersonceonetimeopenoptionatororaos-nameos-tmpdirp-cancelablep-finallyp-limitp-locatep-mapp-trypac-proxy-agentpac-resolverpackage-jsonparent-moduleparse-jsonparse-pathparse-urlparseurlpascalcasepath-existspath-keypath-typepath-is-absolutepath-parsepicocolorspicomatchpifypiratespkg-dirposix-character-classesprelude-lsprettier-linter-helperspretty-formatprocess-nextick-argspromisepromise.allsettledpromptsprop-typesprotocolsproto-listproxy-agentproxy-from-envpumpqueue-microtaskquick-lrurange-parserpunycoderaw-bodyreact-devtools-corercreact-isreact-native-codegenreact-native-gradle-pluginreact-refreshpuparead-pkgreact-shallow-rendererread-pkg-upreadable-streamreadlinerecastrechoirredentqregenerate-unicode-propertiesregenerateregenerator-runtimeregenerator-transformregex-notregexp.prototype.flagsregexppregexpu-coreregistry-auth-tokenregistry-urlregjsgenregjsparserrepeat-elementrepeat-stringrequire-directoryrequire-from-stringrequire-main-filenameresolveresolve-alpnresolve-cwdresolve-fromresolve-globalresolve-urlresolve.exportsrestore-cursorresponselikeretretryrimrafreusifyrun-parallelrun-asyncrxjssafe-buffersafe-regexsafe-regex-testsafer-bufferschedulersemversemver-diffsendserialize-errorserve-staticset-valueset-blockingshallow-clonesetprototypeofshebang-commandshebang-regexshell-quoteshelljsside-channelsignal-exitsisteransislashslice-ansismart-buffersnapdragonsnapdragon-nodesockssnapdragon-utilsocks-proxy-agentsource-mapsource-map-resolvesource-map-supportsource-map-urlspdx-correctspdx-expression-parsespdx-exceptionsspdx-license-idssplit-stringsplitsplit2sprintf-jsstack-utilsstackframestacktrace-parserstatic-extendstatusesstring-widthstring.prototype.matchallstop-iteration-iteratorstring.prototype.trimendstring_decoderstring.prototype.trimstartstrip-ansistrip-bomstring-lengthstrip-eofstrip-final-newlinestrip-indentstrip-json-commentsstring-natural-comparesudo-promptsupports-colorsupports-hyperlinkssupports-preserve-symlinks-flagtempterminal-linktest-excludetext-extensionsthroattext-tablethroughthrough2tmptmplto-fast-propertiesto-object-pathto-regexto-regex-rangetoidentifiertrim-newlinestr46ts-nodetslibtsutilstype-checktype-detecttype-festtyped-array-lengthtypedarraytypedarray-to-bufferuglify-esuglify-jsunbox-primitiveunc-path-regexunicode-canonical-property-names-ecmascriptunicode-match-property-ecmascriptunicode-match-property-value-ecmascriptunicode-property-aliases-ecmascriptunion-valueuniversalifyunpipeuniversal-user-agentunset-valueupdate-browserslist-dbupdate-notifierunique-stringuri-jsurixurl-joinuseuse-sync-external-storeutil-deprecateutils-mergev8-compile-cache-libv8-to-istanbulvalidate-npm-package-licensevaryvlqvm2walkerwcwidthweb-streams-polyfillwebidl-conversionswhatwg-fetchwhatwg-urlwhichwhich-boxed-primitivewhich-modulewhich-typed-arraywidest-linewildcard-matchwindows-releaseword-wrapwordwrapwrap-ansiwrappywrite-file-atomicwsxdg-basedirxregexpxtendy18nyallistyamlyargsyargs-parserynyocto-queue
0.2.3

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago