octokit / octokit.js

The all-batteries-included GitHub SDK for Browsers, Node.js, and Deno.
MIT License
7.02k stars 1.03k forks source link

[BUG]: React Native Support #2406

Closed Ic3b3rg closed 1 year ago

Ic3b3rg commented 1 year ago

What happened?

Following the official github guide I continually encounter the problem that octokit keeps giving me errors to call the github api doing the same code on react web on stackblitz works. Is there no support on react native ?

code:

import { Octokit } from "octokit";

const octokit = new Octokit({ 
  auth: 'YOUR-TOKEN',
});

await octokit.request("GET /repos/{owner}/{repo}/issues", {
  owner: "github",
  repo: "docs",
  per_page: 2
});

Versions

latest version

Relevant log output

No response

Code of Conduct

wolfy1339 commented 1 year ago

What kind of errors are you getting?

React native should work fine

Ic3b3rg commented 1 year ago

It was my mistake sorry a lot