npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@aptos-scp/scp-component-rn-device-services

v4.31.0

Published

A react-native component for integrating with devices.

Maintainers

mraoaptosmraoaptosaly-aptos-comaly-aptos-comsfrederick3sfrederick3anshu.sharmaanshu.sharmanapoleonlazoaptosnapoleonlazoaptosrjeyapaul-aptos-comrjeyapaul-aptos-comranjan.mishraaptosranjan.mishraaptosarajoria-aptos-comarajoria-aptos-comadoppalapudi-aptos-comadoppalapudi-aptos-commahendraborchate-aptos-commahendraborchate-aptos-comdbaz22dbaz22hrobiehrobieaptoslabsaptoslabsbgillaptbgillaptspringcispringciwanderson-aptoswanderson-aptosmscandolomscandoloprabhuramesh-aptos-comprabhuramesh-aptos-comaruna.mathaptosaruna.mathaptoskevinrobertsonaptoskevinrobertsonaptosuhernandezaptosuhernandezaptoscapstone-iscapstone-isjmeyersjmeyersjcampanellajcampanellaazhytkevichaptosazhytkevichaptoselendofelendofmjonesmjonessshikharsshikharrgrigoroiurgrigoroiumpajukmpajukggeorge-aptos-comggeorge-aptos-comsapatelsapatelanilkumarsinghaptosanilkumarsinghaptosamercedamercednkeaneynkeaneyajholzajholztjohnsonaptostjohnsonaptoskvlogiannitiskvlogiannitiswwilkieaptoswwilkieaptosidimitrovaptosidimitrovaptosjgalanakisjgalanakisrnsavagernsavagebalavitruviusbalavitruviusdipan68dipan68pvenukumarpvenukumarsmandalsmandalsnagarajsnagarajdcosletdcosletjespinozaaptosjespinozaaptosfernandeznfernandeznfmartinez-aptos-comfmartinez-aptos-comaptos-apinedaaptos-apinedaydingaptosydingaptosstevenbouchardstevenbouchardaptosone_npmaptosone_npmmvgeeteruyenmvgeeteruyenlramirezaptoslramirezaptoshkuttipuravanhkuttipuravanrmartinezaptosrmartinezaptosanilkumar.reddyanilkumar.reddymvenkatarajumvenkatarajuakhoukazakhoukazmstoneraptosmstoneraptossallipursallipurgmyers-aptosgmyers-aptosagawareagawarergoel-aptos-comrgoel-aptos-commgondhalkar-aptos-commgondhalkar-aptos-comrrudrakanthwar-aptos-comrrudrakanthwar-aptos-compkushwaha-aptos-compkushwaha-aptos-comskeaneyaptosskeaneyaptosdhughesaptosdhughesaptosbmclaughlinaptosbmclaughlinaptosaajayan-aptos-comaajayan-aptos-comaperiyasamy-aptos-comaperiyasamy-aptos-comjloginaptosjloginaptoscuptonaptoscuptonaptosasoni-aptos-comasoni-aptos-comccepccepbkulichaptosbkulichaptosjbrennanjbrennanaptosgkauraptosgkaurrorocaptosrorocaptosaptosjguillemetteaptosjguillemetteamitkumaraptosamitkumaraptosrjayantiaptosrjayantiaptosrevanasiddaptosrevanasiddaptosvpakanati-aptos-comvpakanati-aptos-combkansara-aptos-combkansara-aptos-comoblevinsaptosoblevinsaptosmkulichaptosmkulichaptosawongaptosawongaptosprapanna.mondalprapanna.mondalabharadwajaptosabharadwajaptosddelsavioaptosddelsavioaptosdburroughsaptosdburroughsaptosgriveringriveriniperezaptosiperezaptosmedwardsaptosmedwardsaptosnandan-aptos-comnandan-aptos-comaptosalakmaaptosalakmalalit.puriaptoslalit.puriaptosalexhensonaptosalexhensonaptosdjain-aptos-comdjain-aptos-comapangburnaptosapangburnaptosrjburton63rjburton63swangaptosswangaptosrmadgundi-aptos-comrmadgundi-aptos-comssethumadhavan-aptosssethumadhavan-aptosbkozakbkozakgordongillespieaptosgordongillespieaptosibhaskaranaptosibhaskaranaptosmahmedaptosmahmedaptoslmerrittlmerrittdskripnikovaptosdskripnikovaptoscharishma.chandrakumarcharishma.chandrakumarshobhitsinghaptosshobhitsinghaptosogonzalezaptosogonzalezaptoschetansbaptoschetansbaptosasutoshpandaaptosasutoshpandaaptosdev.infradev.infradhruvabaptosdhruvabaptosbsheppardmatsuoaptosbsheppardmatsuoaptoschallakarthikaptoschallakarthikaptosvpawar-aptos-comvpawar-aptos-combkumar-aptos-combkumar-aptos-comgautamhrishikeshaptosgautamhrishikeshaptosvishnu.rajawat.aptosvishnu.rajawat.aptosshivindrakantiaptosshivindrakantiaptoskishore.mutthumula-aptos-comkishore.mutthumula-aptos-comdianovaleaptosdianovaleaptossreddyaptossreddyaptosjvyasjvyasmlmcintoshaptosmlmcintoshaptossukritibahriaptossukritibahriaptoscharles.dupeecharles.dupeeritugowdaaptosritugowdaaptosrparthasarathyrparthasarathyigordonigordonnickkayurovaptosnickkayurovaptosbwongaptosbwongaptosmanikandanpaptosmanikandanpaptosasurya-aptos-comasurya-aptos-comachapaitkar-aptos-comachapaitkar-aptos-comaarathi.vaarathi.varshadabdulaptosarshadabdulaptosnarendra.rnarendra.rpkadlikoppa-aptos-compkadlikoppa-aptos-comsanjanabanothaptossanjanabanothaptosrisharorarisharorasaravanantaptossaravanantaptosrahulshettyaptosrahulshettyaptosamanjakharaptosamanjakharaptosramyasaptosramyasaptosmahesh.annavarapumahesh.annavarapuvkhilnaniaptosvkhilnaniaptosckavathekarckavathekartheamoghpaltheamoghpalbdas-aptos-combdas-aptos-comanjalikumariaptosanjalikumariaptosamohanishamohanishchiraggandhiaptoschiraggandhiaptosgeetanshmamtaniaptosgeetanshmamtaniaptosplozano_aptosplozano_aptosshishiraptosshishiraptosvinaykarnatiaptosvinaykarnatiaptosjvalan-aptos-comjvalan-aptos-commdeshpande-aptos-commdeshpande-aptos-comjithu-s-aptos-comjithu-s-aptos-comhgupta-aptos-comhgupta-aptos-comsanjanabt-aptos-comsanjanabt-aptos-comkasettysailesh-aptos-comkasettysailesh-aptos-comsakshamaptossakshamaptosrujoolpatilaptosrujoolpatilaptoskumarharshaptoskumarharshaptoskhushi-sharma-aptos-comkhushi-sharma-aptos-comayushpandeyaptosayushpandeyaptosyukthamaptosyukthamaptosjstrohljstrohlabhilashmishra-aptos-comabhilashmishra-aptos-comnharoonaptosnharoonaptostalarcon1talarcon1mayankajainaptosmayankajainaptosnperumal-aptosnperumal-aptosssahoo-aptos-comssahoo-aptos-comrohanshettyaptosrohanshettyaptoscsuraboyna-aptos-comcsuraboyna-aptos-comshreyasinhaaptosshreyasinhaaptoskyle-thompson-aptoskyle-thompson-aptosnavinkumaraptosnavinkumaraptosmichael.kacermichael.kacerpuneetdewanaptospuneetdewanaptosankumaraptosankumaraptosrob-johnson-aptos-comrob-johnson-aptos-comharshwardhansolankiaptosharshwardhansolankiaptossantoshkoganoleaptossantoshkoganoleaptosksinghaptosksinghaptoslata-rawal-aptos-comlata-rawal-aptos-comnaveenaptosnaveenaptossumalikabodeddula-aptos-comsumalikabodeddula-aptos-comdavid-baxendale-aptos-comdavid-baxendale-aptos-comishani.chaudhuriaptosishani.chaudhuriaptosananth-kashyap-aptos-comananth-kashyap-aptos-comvishnunc-aptosvishnunc-aptossimonrowlandaptossimonrowlandaptosramyakalal-aptos-comramyakalal-aptos-comgaurav-pratap-aptos-comgaurav-pratap-aptos-compulkit-yadav-aptos-compulkit-yadav-aptos-compramodp-aptos-compramodp-aptos-comaaugustine-aptos-comaaugustine-aptos-comksowndaryaksowndaryadeepukumaraptosdeepukumaraptosgopalprasadaptosgopalprasadaptosaryan-kashyap-aptos-comaryan-kashyap-aptos-com

Keywords

Readme

** POD Owner **

  • ** Store Selling 1 **

scp-component-rn-device-services

The device services library handles integration with various devices (payment, scanner, etc).

Installation

First, make sure you are logged-in to the private NPM registry:

npm adduser --registry=https://registry.npmjs.org/ --scope=@aptos-scp

Then install the dependency packages:

npm install

Building the component library

First, make sure you are logged-in to the private NPM registry (mentioned earlier) Then, install the dependencies:

$ npm install

Finally, build the component library:

$ npm run build

You can then also run tests and coverage:

$ npm run test
$ npm run coverage

Debugging

To setup a mocha test configuration in WebStorm, do the following:

  1. Open the project in WebStorm.
  2. At the top right of the project window, choose Edit Configurations....
  3. Click the "+" symbol to add a new configuration, and choose Mocha.
  4. Select the appropriate node interpreter. If using NVM, this should be something like, ~/.nvm/versions/node/v8.11.3/bin/node.
  5. Make sure the project root is set as the working directory.
  6. Set Extra M¡ocha Options to --opts mochaUnitTest.opts.
  7. Set Test file patterns to test-js/**/*.spec.js.
  8. Save the configuration, then run or debug.

To setup interactive debugging in VSCode, do the following:

  1. Open launch.json from debugging side bar.
  2. Paste the following section into file: { "name": "Run mocha", "type": "node", "request": "launch", "program": "${workspaceRoot}/node_modules/mocha/bin/_mocha", "stopOnEntry": false, "args": ["${workspaceRoot}/test-js/**/*.js", "--no-timeouts", "--opts", "${workspaceRoot}/mochaUnitTest.opts"], "cwd": "${workspaceRoot}", "runtimeExecutable": null, "env": { "NODE_ENV": "testing"} }
  3. Run "Run mocha" from debugger dropdown. Breakpoints added to mocha tests should be hit.

Publishing changes

To publish a new version to the NPM registry:

  1. Commit and push the changes .

  2. Update the version of the package using one of the following:

    npm version patch

    or

    npm version minor

    or one of the other variations (see npm-version)

  3. Push the version commit

    git push origin master
  4. Push the version tag

    git push origin <name-of-tag>

    where is something like vX.Y.Z (e.g. v1.0.58)

    or

    From WebStorm or IntelliJ make sure that the Push Tags check-box is checked, when you push changes.

When the build in Circle CI sees the version tag, it will publish the changes to the NPM repository.

API

tbd

Adding Dependency Injection (DI) Types (Inversify)

Please see src/config/inversify/README.md.

Import as dependency

To use package before android build you need in your parent project publish local maven repository (eg. ./gradlew publishToMavenLocal).

Troubleshooting / Tips

  • I just installed a package and now I'm getting an Unexpected token import error when I run tests: The unit tests are run with mocha under node.js. Unfortunately node's CommonJS module system is incompatible with ES6 modules. Some React Native modules are compiled as ES6 modules, and will have to be either mocked or transpiled to run under node. There is a file in the root of this procect, custom-babel-register.js, which contains a regular expression intended to match any modules that require transpilation to run under the node testing framework. If necessary, modify this expression to include your package and see if the problem is resolved.

version update commit

License

Copyright (c) 2017 Aptos, Inc. All rights reserved.

Integrated Frameworks

Aurus SDK

  • iOS -- v22.018
  • Android -- v21.0083

Adyen SDK

  • iOS - N/A
  • Android - N/A

Epson SDK

  • iOS - v2.13.0
  • Android - v2.13.0