Hello, I am looking to build a React Native app that is used as a client tuneller into the Ziti network. I have already built the ziti overlay network with clients accessing my service through the Ziti Mobile Edge with their JWT tokens and they can see my service in their browser correctly.
But now the next step is to build a React Native app that would communicate with my service through the Ziti network. I found this repo for React Native: GitHub - openziti/react-native-ziti: use Ziti networking in your React Native mobile app from @ekoby and tried for several hours to make it work, but without any success. In the readme there is "// TODO: What to do with the module?" So my question is how can I use that module? How do I register a JWT token and how do I send requests through the ziti network? Another issue I've faced is a peer dependency to old react native that breaks my project dependencies. And another issue is that there is no actual test in the repo, in package.json i only found 'test": "echo "Error: no test specified" && exit 1" which tells me that there is no actual test.
I would really appreciate any help or tips I can get to make my React Native app work with Ziti. It is my bachelor thesis after all and it is quite late to switch to anything else.
Thank you.
@BarboraPechackova welcome to OpenZiti discussion forum and thank for your interest.
OpenZiti ReactNavive module was an early experiment that was never finished due to lack of interest and other priorities.
Depending on your needs we may provide some guidance. Are you interested in cross-platform development or a single target? Have you considered using OpenZiti mobile tunnelers?
Hello, i am interested in cross-platform development specifically in React Native for both ios and android. The OpenZiti mobile tunnelers are not the way for me, bacause i don't want my user to have to download another app in order for them to be able to use mine.
But i was looking at other SDKs and was wondering if the Javscript SDK could work in React Native, but im really not sure.
Hello @ekoby can you please help me with my issue?
I've tried integrating the Javascript SDK into my project and I am trying to enroll the token, connecting to my ziti network and trying to call a http request, but so far nothing works because i keep getting error "Property 'zitiConfig' doesn't exist". I dont know why, there is nothing about zitiConfig in any example usage I've seen, so I dont know what to do with the error. My example call can be found on gitlab here