Hi,
It is working in RN 0.63.3. react-native-boilerplate
Iâm trying implementation Moralis in RN 0.64.x and 0.65.x
moralis: "0.0.99",
It doesnât work when i use import Moralis from 'moralis/react-native';
It works when i make the following change in node_modules/moralis/lib/react-native/EventEmitter.js
var EventEmitter = require('../../../react-native/Libraries/vendor/emitter/EventEmitter');
EventEmitter.prototype.on = EventEmitter.prototype.addListener;
module.exports = EventEmitter;
to
if (process.env.PARSE_BUILD === 'react-native') {
const EventEmitter = require('../../../react-native/Libraries/vendor/emitter/EventEmitter');
EventEmitter.prototype.on = EventEmitter.prototype.addListener;
module.exports = EventEmitter;
} else {
module.exports = require('events').EventEmitter;
}
Can you check in newer versions of React Native?
Thanks