Skip to content

Commit

Permalink
docs: update OnchainKit troubleshooting docs with note regarding Reac…
Browse files Browse the repository at this point in the history
…t Native support
  • Loading branch information
dschlabach authored Mar 7, 2025
1 parent 3d20d66 commit d82e64d
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@ This guide covers common issues you may encounter while using OnchainKit. If you
### Theme Issues

- **Dark Mode Not Working**

- Error: "Dark mode styles not applying"
- Solution: Configure Tailwind and OnchainKit properly:

```js
// tailwind.config.js
module.exports = {
Expand All @@ -115,6 +117,18 @@ This guide covers common issues you may encounter while using OnchainKit. If you
}
```

### React Native

- ** React Native Support **
- OnchainKit's components are not supported for use in React Native, however, you can use utility functions, like `getName`, as well as some hooks in your React Native app. When using these utility functions, you may need to import them directly rather than through the export file.
- Example: `import { getName } from '@coinbase/onchainkit/esm/identity/utils/getName.js';` rather than `import { getName } from '@coinbase/onchainkit/identity;`

### Module Resolution

- **Module Resolution Errors**
- Error: "Cannot find module ... or its corresponding type declarations. Consider updating to 'node16', 'nodenext', or 'bundler'"
- Solution: Update your Node.js version or use a compatible bundler. We recommend using Node 18+ and `"moduleResolution": "NodeNext"` for the best developer experience. OnchainKit supports only ES Modules and does not support CommonJS modules.

## Getting Help

Need more help?
Expand Down

0 comments on commit d82e64d

Please sign in to comment.