Skip to content

Commit 2b57062

Browse files
committed
plugin: support react-native 0.64
1 parent 1366db0 commit 2b57062

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
import { NativeModules, NativeAppEventEmitter } from 'react-native';
3-
var EventEmitter = require('react-native/Libraries/vendor/emitter/EventEmitter');
3+
var EventEmitter = require('react-native/Libraries/vendor/emitter/EventEmitter').default;
44

55
const EVENT_CHANNEL = '_EVENTS_';
66

nodejs-mobile-react-native.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ Pod::Spec.new do |s|
2020
s.user_target_xcconfig = { 'ENABLE_BITCODE' => 'NO' }
2121
s.ios.vendored_frameworks = 'ios/NodeMobile.framework'
2222
s.static_framework = true
23-
s.dependency 'React'
23+
s.dependency 'React-Core'
2424
end

0 commit comments

Comments
 (0)