React Native wrapper for node-onvif library
Last updated 2 years ago by keenubee .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-native-onvif 
SYNC missed versions from official npm registry.


React Native wrapper for node-onvif library

  1. Install and shim
npm i --save react-native-onvif
# install peer deps
npm i --save react-native-randombytes
react-native link react-native-randombytes
npm i --save react-native-udp
react-native link react-native-udp
# install node core shims and recursively hack package.json files
# in ./node_modules to add/update the "browser"/"react-native" field with relevant mappings
./node_modules/.bin/rn-nodeify --hack --install
# if using yarn:
./node_modules/.bin/rn-nodeify --hack --install --yarn
  1. rn-nodeify will create a shim.js in the project root directory.

Manually uncomment the line to require('crypto') in shim.js, this is because as of react-native 0.49, dynamically requiring a library is no longer allowed.

// index.js
// make sure you use `import` and not `require`!
import './shim.js'
// ...the rest of your code

Current Tags

  • 1.0.0                                ...           latest (2 years ago)

1 Versions

  • 1.0.0                                ...           2 years ago
Maintainers (1)
Today 0
This Week 2
This Month 2
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (0)
Dependents (0)

Copyright 2014 - 2017 © |