Giter Club home page Giter Club logo

Comments (20)

olofd avatar olofd commented on May 30, 2024 1

hmm.. testing a fresh project here right now... I'll report back soon.

from react-native-signalr.

ezyone123 avatar ezyone123 commented on May 30, 2024 1

I am sorry for not updating. The issue was the url passed in was what was causing the issue. Hard linking the url worked and I will later be testing getting the url set in a var. Ill update with findings. Thanks for closing.

from react-native-signalr.

olofd avatar olofd commented on May 30, 2024

iOS? Hmm.. Version 1.0?

from react-native-signalr.

ezyone123 avatar ezyone123 commented on May 30, 2024

"react-native-signalr": "^1.0.0"

That is from my package.json.

from react-native-signalr.

olofd avatar olofd commented on May 30, 2024

react-native version ?

from react-native-signalr.

ezyone123 avatar ezyone123 commented on May 30, 2024

0.40.0

from react-native-signalr.

ezyone123 avatar ezyone123 commented on May 30, 2024

Is there any way the jquery library in the server example would be included with the native package ?

from react-native-signalr.

ezyone123 avatar ezyone123 commented on May 30, 2024

THANKS SO MUCH!

from react-native-signalr.

olofd avatar olofd commented on May 30, 2024

@ezyone123 hmm.. no problems here on a fresh project, connected and worked fine. Same import as yours. RN 0.40 and rn-signalr 1.0.
The package.json:

{
  "name": "yyy",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "react": "~15.4.0-rc.4",
    "react-native": "0.40.0",
    "react-native-signalr": "^1.0.0"
  },
  "devDependencies": {
    "babel-jest": "18.0.0",
    "babel-preset-react-native": "1.9.1",
    "jest": "18.1.0",
    "react-test-renderer": "~15.4.0-rc.4"
  },
  "jest": {
    "preset": "react-native"
  }
}

It might be that signalr-library conflicts with some other dependency you have.
Could you post your package.json, or only the dependencies you have?

that window.location thing is a global hack that needs to be there for signalr-client to function. Nothing that awful, but it might conflict. Another question as well, are you running with any custom debugger?

from react-native-signalr.

ezyone123 avatar ezyone123 commented on May 30, 2024
{
  "name": "TeamDynamix",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest",
    "flow": "node_modules/.bin/flow"
  },
  "dependencies": {
    "react": "15.4.2",
    "react-native": "0.40.0",
    "react-native-camera": "^1.0.0-alpha1",
    "react-native-code-push": "^1.16.1-beta",
    "react-native-cookies": "^2.0.0",
    "react-native-drawer": "^2.3.0",
    "react-native-fabric": "^0.4.0",
    "react-native-keychain": "^1.0.0",
    "react-native-maps": "^0.13.0",
    "react-native-onesignal": "^2.0.0",
    "react-native-orientation": "git+https://github.com/yamill/react-native-orientation.git",
    "react-native-router-flux": "^3.37.0",
    "react-native-signalr": "^1.0.0",
    "react-native-simple-store": "^1.1.0",
    "react-native-vector-icons": "^4.0.0",
    "react-redux": "^5.0.2",
    "redux": "^3.6.0",
    "redux-thunk": "^2.1.0"
  },
  "devDependencies": {
    "babel-jest": "18.0.0",
    "babel-preset-react-native": "1.9.1",
    "jest": "18.1.0",
    "react-test-renderer": "15.4.2",
    "flow-bin": "^0.37.4"
  },
  "jest": {
    "preset": "react-native"
  }
}

from react-native-signalr.

ezyone123 avatar ezyone123 commented on May 30, 2024

I am using a error reporting service, its the fabric dependency.

from react-native-signalr.

olofd avatar olofd commented on May 30, 2024

Yes. I know fabric. I'll try installning all your dep and importing them before signalr and see if I can reproduce. You can try removing the others on at a time maybe. and see if you can get it running. You should also try a fresh project like i did with react-native init to see that it's not an issue with your env.

from react-native-signalr.

ezyone123 avatar ezyone123 commented on May 30, 2024

importing your library into the root of my app does not result in any errors.

from react-native-signalr.

ezyone123 avatar ezyone123 commented on May 30, 2024

and it only happens when I call connection.start

from react-native-signalr.

ezyone123 avatar ezyone123 commented on May 30, 2024

I went though all my dependencies and none (other than yours) have a jquery dependency

from react-native-signalr.

olofd avatar olofd commented on May 30, 2024

Weird. The only way I can help you further is by testing you acutul source-code. If it's not that private of a project you can zip it and mail it to me at [email protected] and I'll take a look.

from react-native-signalr.

ezyone123 avatar ezyone123 commented on May 30, 2024

Turns out it was the URL I was passing in for the server. Is there a check to make sure the URL is a proper URL?

from react-native-signalr.

olofd avatar olofd commented on May 30, 2024

@ezyone123 Ah! Then there must be something here : https://github.com/olofd/react-native-signalr/blob/master/src/bridge.js#L28 Could you set a breakpoint there and see what goes wrong?

from react-native-signalr.

olofd avatar olofd commented on May 30, 2024

@ezyone123 Did you solve this? Please close the issue if you found a solution.

from react-native-signalr.

olofd avatar olofd commented on May 30, 2024

Closing

from react-native-signalr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.