1.1.0 • Published 11 days ago

react-native-expo-read-sms-ts-kf v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
11 days ago

react-native-expo-read-sms / Webpage

Maintainers

maniac-tech Active maintainer

Installation

Install this in your managed Expo project by running this command:

$ npm install @maniac-tech/react-native-expo-read-sms --save

Usage

  1. Import the startReadSMS function after installation

    import { startReadSMS } from "@maniac-tech/react-native-expo-read-sms";

  2. Pass Success and Error callbacks startReadSMS(successCallbackFn, errorCallbackFn)

  3. Everytime an SMS has been received successCallbackFn will be called with the sms

Example

You may refer to this sample application for how to use the library: GitHub Repo

Methods

Method nameDescriptionParamsReturns
checkIfHasSMSPermissionFunction which checks if the application has READ_SMS and RECEIVE_SMS permissions-{ hasReceiveSmsPermission: true/false, hasReadSmsPermission: true/false }
requestReadSMSPermissionRequests READ_SMS and RECEIVE_SMS permission, if missing-Returns true if granted, and false otherwise
startReadSMSStarts listening for incoming messages. Note: SMS Permissions should be present.callback fnReturn a string with message orginating address, and message body. Example: [+919999999999, this is a sample message body]

Important Note:

Ensure your app has READ_SMS, and RECEIVE_SMS, failing which you'll receive error on calling the function

Support

Tested on Expo SDK v44 & v45, and Node JS v14

License

MIT

abort-controllerabsolute-pathacceptsacornanseransi-fragmentsansi-regexansi-stylesanymatchappdirsjsargparsearr-diffarr-flattenarr-unionarray-uniqueasapassign-symbolsast-typesastral-regexasyncasync-limiteratobbabel-corebabel-plugin-polyfill-corejs2babel-plugin-polyfill-corejs3babel-plugin-polyfill-regeneratorbabel-plugin-syntax-trailing-function-commasbabel-preset-fbjsbalanced-matchbasebase64-jsblbrace-expansionbracesbrowserslistbserbufferbuffer-frombytescache-basecaller-callsitecaller-pathcallsitescamelcasecaniuse-litechalkci-infoclass-utilscli-cursorcli-spinnerscliuicloneclone-deepcollection-visitcolor-convertcolor-namecolorettecommand-existscommandercommondircomponent-emittercompressiblecompressionconcat-mapconnectconvert-source-mapcopy-descriptorcore-js-compatcore-util-iscosmiconfigcross-spawndayjsdebugdecamelizedecode-uri-componentdeepmergedefaultsdefine-propertydenodeifydepddeprecated-react-native-prop-typesdestroyee-firstelectron-to-chromiumemoji-regexencodeurlend-of-streamenvinfoerror-exerror-stack-parsererrorhandlerescaladeescape-htmlescape-string-regexpesprimaesutilsetagevent-target-shimexecaexpand-bracketsextend-shallowextglobfast-xml-parserfb-watchmanfill-rangefinalhandlerfind-cache-dirfind-upflow-parserfor-infragment-cachefreshfs-extrafs.realpathfunction-bindgensyncget-caller-fileget-streamget-valueglobglobalsgraceful-fshashas-flaghas-valuehas-valueshermes-estreehermes-parserhermes-profile-transformerhttp-errorsieee754image-sizeimport-freshimurmurhashinflightinheritsinvariantipis-accessor-descriptoris-arrayishis-bufferis-core-moduleis-data-descriptoris-descriptoris-directoryis-extendableis-fullwidth-code-pointis-interactiveis-numberis-plain-objectis-streamis-unicode-supportedis-windowsis-wslisarrayisexeisobjectjest-environment-nodejest-get-typejest-message-utiljest-mockjest-regex-utiljest-serializerjest-utiljest-validatejest-workerjoijs-tokensjs-yamljsc-androidjsc-safe-urljscodeshiftjsescjson-parse-better-errorsjson5jsonfilekind-ofkleurlevenlocate-pathlodash.debouncelodash.throttlelog-symbolslogkittyloose-envifylru-cachemake-dirmakeerrormap-cachemap-visitmemoize-onemerge-streammetrometro-babel-transformermetro-cachemetro-cache-keymetro-configmetro-coremetro-file-mapmetro-hermes-compilermetro-inspector-proxymetro-minify-tersermetro-minify-uglifymetro-react-native-babel-presetmetro-react-native-babel-transformermetro-resolvermetro-runtimemetro-source-mapmetro-symbolicatemetro-transform-pluginsmetro-transform-workermicromatchmimemime-dbmime-typesmimic-fnminimatchminimistmixin-deepmkdirpmsnanomatchnegotiatorneo-asyncnice-trynocachenode-dirnode-fetchnode-int64node-releasesnode-stream-zipnormalize-pathnpm-run-pathnullthrowsob1object-assignobject-copyobject-visitobject.pickon-finishedon-headersonceonetimeopenoraos-tmpdirp-finallyp-limitp-locatep-tryparse-jsonparseurlpascalcasepath-existspath-is-absolutepath-keypath-parsepicocolorspicomatchpifypiratespkg-dirposix-character-classespretty-formatprocess-nextick-argspromisepromptsprop-typespumprange-parserreactreact-devtools-corereact-isreact-nativereact-native-codegenreact-native-gradle-pluginreact-refreshreact-shallow-rendererreadable-streamreadlinerecastregenerateregenerate-unicode-propertiesregenerator-runtimeregenerator-transformregex-notregexpu-coreregjsparserrepeat-elementrepeat-stringrequire-directoryrequire-main-filenameresolveresolve-fromresolve-urlrestore-cursorretrimrafsafe-buffersafe-regexschedulersemversendserialize-errorserve-staticset-blockingset-valuesetprototypeofshallow-cloneshebang-commandshebang-regexshell-quotesignal-exitsisteransislashslice-ansisnapdragonsnapdragon-nodesnapdragon-utilsource-mapsource-map-resolvesource-map-supportsource-map-urlsplit-stringsprintf-jsstack-utilsstackframestacktrace-parserstatic-extendstatusesstring-widthstring_decoderstrip-ansistrip-eofstrnumsudo-promptsupports-colorsupports-preserve-symlinks-flagtempterserthroatthrough2tmplto-fast-propertiesto-object-pathto-regexto-regex-rangetoidentifiertr46tslibtype-detecttype-festuglify-esunicode-canonical-property-names-ecmascriptunicode-match-property-ecmascriptunicode-match-property-value-ecmascriptunicode-property-aliases-ecmascriptunion-valueuniversalifyunpipeunset-valueupdate-browserslist-dburixuseuse-sync-external-storeutil-deprecateutils-mergevaryvlqwalkerwcwidthwebidl-conversionswhatwg-fetchwhatwg-urlwhichwhich-modulewrap-ansiwrappywrite-file-atomicwsxtendy18nyallistyargsyargs-parseryocto-queue
1.1.0

11 days ago