Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using node-tlv in react native #6

Open
mimok opened this issue Dec 14, 2023 · 1 comment
Open

Using node-tlv in react native #6

mimok opened this issue Dec 14, 2023 · 1 comment
Assignees

Comments

@mimok
Copy link

mimok commented Dec 14, 2023

Hello,

I'm trying to use node-tlv from a React Native application. I did some tests and it seems to work however I had to add require("buffer") in some files. Would It be possible to add these imports ? I can do a PR.

Example: Property Buffer does not exist line 12 of util.js.

@coolbong coolbong self-assigned this Jan 17, 2024
@coolbong
Copy link
Owner

Try adding the code to App.js.

global.Buffer = require('buffer').Buffer;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants