meteorrn / meteor-react-native

Meteor client for React Native matching Meteor Spec
https://guide.meteor.com/react-native.html
Other
59 stars 31 forks source link

TypeError: null is not an object (evaluating 'this.ddp.on') #76

Closed Akashdeep312 closed 2 years ago

Akashdeep312 commented 3 years ago

migrating from react-native-meteor-upgraded to meteorrn/core Due to white screen issue on ios platform with react-native-meteor-upgraded package , trying to migrate to meteorrn/core but getting following issue React Native and MeteorRN versions:

  "react": "16.13.1",
  "react-native": "0.63.4",
  "@meteorrn/core": "^2.3.0",
  "@react-native-async-storage/async-storage": "^1.15.9",

getting the following error

simulator_screenshot_CEE6FEF7-BE20-4366-8D80-7800B0DC645F

TheRealNate commented 3 years ago

Hi there,

Writing this over email so hope it’s formatted correctly. You’ll get this error if you haven’t called Meteor.connect. Make sure you’re calling it as early as possible, preferably in the top call level of index (not inside any other function or callback)

On Fri, Oct 8, 2021 at 1:58 PM Rises @.***> wrote:

migrating from react-native-meteor-upgraded to meteorrn/core Due to white screen issue on ios platform with react-native-meteor-upgraded package , trying to migrate to meteorrn/core but getting following issue React Native and MeteorRN versions: "react": "16.13.1", "react-native": "0.63.4", @./core": "^2.3.0", @./async-storage": "^1.15.9",

[image: simulator_screenshot_CEE6FEF7-BE20-4366-8D80-7800B0DC645F] https://user-images.githubusercontent.com/48234644/136601562-fa966d55-c4dd-41f7-8029-daf6d7f7c618.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/TheRealNate/meteor-react-native/issues/76, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD4DQQZD2FVBRPFYI3ZMX6DUF4WMXANCNFSM5FUD37MQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

--

Akashdeep312 commented 2 years ago

hi @TheRealNate thanks it's started working as i called meteor.connect in index thanks