Missing Realm constructor. Did you run "react-native link realm"?
See original GitHub issue2019-10-12 18:12:48.003275+0800 mlmlApp[28520:193898] [] nw_socket_handle_socket_event [C5.1:1] Socket SO_ERROR [61: Connection refused] 2019-10-12 18:12:48.008963+0800 mlmlApp[28520:193898] [] nw_socket_handle_socket_event [C5.2:1] Socket SO_ERROR [61: Connection refused] 2019-10-12 18:12:48.017092+0800 mlmlApp[28520:193888] [] nw_connection_get_connected_socket [C5] Client called nw_connection_get_connected_socket on unconnected nw_connection 2019-10-12 18:12:48.017465+0800 mlmlApp[28520:193888] TCP Conn 0x6000020f1680 Failed : error 0:61 [61] 2019-10-12 18:12:48.222 [error][tid:com.facebook.react.JavaScript] Error: Missing Realm constructor. Did you run “react-native link realm”? Please see https://realm.io/docs/react-native/latest/#missing-realm-constructor for troubleshooting 2019-10-12 18:12:48.226 [fatal][tid:com.facebook.react.ExceptionsManagerQueue] Unhandled JS Exception: Error: Missing Realm constructor. Did you run “react-native link realm”? Please see https://realm.io/docs/react-native/latest/#missing-realm-constructor for troubleshooting 2019-10-12 18:12:48.253 [error][tid:com.facebook.react.JavaScript] Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication) 2019-10-12 18:12:48.256 [fatal][tid:com.facebook.react.ExceptionsManagerQueue] Unhandled JS Exception: Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
Version of Realm and Tooling
- Realm JS SDK Version: 3.2.0
- Node or React Native: 0.61.2
- Client OS & Version: Mac10.14.6
- Which debugger for React Native: xCode
I have followed the documentation ‘https://realm.io/docs/javascript/latest/#missing-realm-constructor’ but it not work
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:55 (12 by maintainers)
Android is ok
I got it working by: for both iOS AND android
having the auto-linking disabled in the config file
OSX 10.15 RN 0.61.2 REALM 3.2.0
dragged this two XCODE and deleted the test target in RealmJS.xcodeproj
added the libRealmReact.a file in link binaries with libraries