mirror of
https://github.com/status-im/react-native-randombytes.git
synced 2026-08-31 02:51:17 +00:00
Fixed errors in react-native-randombytes desktop implementation
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
#include <memory>
|
||||
|
||||
#include "bridge.h"
|
||||
#include "rnrandombytes.h"
|
||||
#include "rnrandombytesdesktop.h"
|
||||
#include <QCryptographicHash>
|
||||
#include <QDateTime>
|
||||
#include <QMap>
|
||||
@@ -22,6 +22,15 @@
|
||||
#include <QNetworkRequest>
|
||||
#include <QQuickImageProvider>
|
||||
|
||||
|
||||
namespace {
|
||||
struct RegisterQMLMetaType {
|
||||
RegisterQMLMetaType() {
|
||||
qRegisterMetaType<RNRandomBytes*>();
|
||||
}
|
||||
} registerMetaType;
|
||||
} // namespace
|
||||
|
||||
class RNRandomBytesPrivate {
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user