fix export
This commit is contained in:
parent
9b90576393
commit
e8380a7aad
2
index.js
2
index.js
|
@ -6,7 +6,7 @@ var {
|
||||||
RNRandomBytes
|
RNRandomBytes
|
||||||
} = require('react-native').NativeModules
|
} = require('react-native').NativeModules
|
||||||
|
|
||||||
export function randomBytes (length, cb) {
|
export default function randomBytes (length, cb) {
|
||||||
if (!cb) throw new Error('synchronous API not supported')
|
if (!cb) throw new Error('synchronous API not supported')
|
||||||
|
|
||||||
RNRandomBytes.randomBytes(length, function (err, base64String) {
|
RNRandomBytes.randomBytes(length, function (err, base64String) {
|
||||||
|
|
Loading…
Reference in New Issue