mirror of
https://github.com/status-im/react-native-randombytes.git
synced 2026-08-31 02:51:17 +00:00
fix export
This commit is contained in:
@@ -6,7 +6,7 @@ var {
|
||||
RNRandomBytes
|
||||
} = require('react-native').NativeModules
|
||||
|
||||
export function randomBytes (length, cb) {
|
||||
export default function randomBytes (length, cb) {
|
||||
if (!cb) throw new Error('synchronous API not supported')
|
||||
|
||||
RNRandomBytes.randomBytes(length, function (err, base64String) {
|
||||
|
||||
Reference in New Issue
Block a user