fix export

This commit is contained in:
Mark Vayngrib 2015-11-19 20:02:11 +00:00
parent 9b90576393
commit e8380a7aad
1 changed files with 1 additions and 1 deletions

View File

@ -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) {