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 in a React Native project for a bluetooth connection #14

Open
t3db0t opened this issue Aug 27, 2021 · 1 comment
Open

Using in a React Native project for a bluetooth connection #14

t3db0t opened this issue Aug 27, 2021 · 1 comment

Comments

@t3db0t
Copy link

t3db0t commented Aug 27, 2021

Hi there—I'm working on a mobile app in React Native (using the Expo platform) that connects via Bluetooth to a radio module called an XBee. The XBee uses SRP to authenticate, but I'm unsure yet how exactly to use this library in this case.

I'm trying to import the library in ES6 (again, this is a React Native project):
import { srpClientFactory } from 'thinbus-srp';

But I'm getting bogged down with some dependency issues (see here: https://stackoverflow.com/questions/68959162/using-the-crypto-node-lib-in-a-react-native-project).

Do you have any tips on how to use this library in Expo/React Native? I see there's a fork called
react-native-thinbus-srp where they appear to have fixed this, but I'm not sure how to use that fork since it's not on npm.

@simbo1905
Copy link
Owner

Hey, apologies that I did not see this at the time. I am happy to see on StackOverflow that you found a workaround.

I will take a look at the fork and see if I can run the tests with it to get it merged and released.

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