Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@goki-lock/react-native

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@goki-lock/react-native

goki lock sdk

  • 0.0.8
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
2
Weekly downloads
 
Created
Source

Goki lock sdk for react-native

how to install

yarn add @goki-lock/react-native

or

npm install @goki-lock/react-native

then add the stream alias to your metro.config.js & install stream-browserify if needed


module.exports = {
  // ...
  resolver: {
    extraNodeModules: {
      'stream': require.resolve('stream-browserify'),
    },
  },
  //...
}

please follow react-native-ble-plx@2.+ documentation and install it and add the required permissions to your app.

Please make sure these requirements are met before calling the sdk methods other it will fail.

  • iOS requirements
    • bluetooth should be on in both control center and settings
    • bluetooth permission needs to be granted
  • Android requirements
    • bluetooth should be on
    • bluetooth permission needs to be granted
    • location permission needs to be granted
    • location service needs to be enabled

you can use @goki-lock/react-native-utils to do these checks

How to use

import GokiLockSDK from '@goki-lock/react-native'

const lockdata = '...'
GokiLockSDK.unlock(lockdata)
.then(() => {
  console.log('unlock success')
})
.catch(err => {
  console.log('unlock failed', err)
})

FAQs

Package last updated on 28 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc