Closed AdamTo closed 3 years ago
Hope this is the proper way to contact you guys. It is my first in life issue to open source repo. Your work is great, I search for solution like that for quite some time. Is there a way to contact you guys outside git?
This package contains native modules. I could be wrong but I don't think Expo is able to access native modules. Only pure JS
OK. I'll test it natively and update the issue.
Have an almost identical situation with pure react native.
Implementation
const App: () => React$Node = () => {
const tor = Tor();
const makeTorRequest = async () => {
// Start the daemon and socks proxy (no need for Orbot and yes iOS supported!)
await tor.startIfNotStarted();
try {
// Use built in client to make REST calls to .onion urls routed through the Sock5 proxy !
const resp = await tor.get(
'http://xmh57jrknzkhv6y3ls3ubitzfqnkrwxhopf5aygthi7d6rplyvk3noyd.onion/cgi-bin/omega/omega',
);
} catch (error) {
// Catch a network or server error like you normally with any other fetch library
}
};
makeTorRequest();
return (
<>
<Text>A</Text>
</>
);
};
Do you have some example apps for reference?
const tor = Tor();
outside of the component or wrap in a memoIf the error persist, please repost with:
Thanks !
now works just great, sorry for the inconvenience.
Happens on the tor constructor
const tor = Tor();
Stack trace:
Expo error screen.
NODE: v15.1.0
package.json contents: