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

null is not an object evaluating Bluetooth.on #107

Open
mamdouh97 opened this issue Aug 27, 2019 · 9 comments
Open

null is not an object evaluating Bluetooth.on #107

mamdouh97 opened this issue Aug 27, 2019 · 9 comments

Comments

@mamdouh97
Copy link

Basically, I created a blank react-native project and installed the library and did the installation manually. when I import the library in App.js without using it the application throws an error.
null is not an object evaluating Bluetooth.on

@mrzephros
Copy link

Same issue...

@robert-wilcox
Copy link

I am having the same issue. It seems to me like the objects aren't getting imported correctly.

@hszczapa
Copy link

hszczapa commented Nov 8, 2019

Has this been solved? I'm having the same issue.

@bhoomika911
Copy link

I am also facing the same issue in iOS simulator. Anyone can please help here?

@patroldo patroldo mentioned this issue Feb 28, 2020
@lucassouza16
Copy link

I have been using this module for two of my projects for a long time, but in recent versions of react it presented several problems, mainly in iOS, I looked for other modules that work with esc pos and in my opinion this is the most complete and practical, because unfortunately the project was abandoned. So I thought it best to fix the module problems to continue using it, for those who have problems feel free to use:

https://github.com/lucassouza16/react-native-bluetooth-serial.git

To replace the original with the fork:

iOS

yarn remove react-native-bluetooth-serial && yarn add lucassouza16/react-native-bluetooth-serial#latest && cd ios && pod install && cd .. && yarn ios

Android

yarn remove react-native-bluetooth-serial && yarn add lucassouza16/react-native-bluetooth-serial#latest && cd android && ./gradlew clean && cd .. && yarn android

@zbram101
Copy link

@lucassouza16 you are the real hero. using ur repo now :)

@sandeepsandy8790
Copy link

Thanks @lucassouza16 for the solution

@Rinrin56
Copy link

@lucassouza16 hi when i run this "yarn add lucassouza16/react-native-bluetooth-serial#latest"
something error:
error An unexpected error occurred: "https://raw.githubusercontent.com/lucassouza16/react-native-bluetooth-serial/b8060e718dc71ab50a89aadc28fca8d34d50dabe/package.json: getaddrinfo ENOENT raw.githubusercontent.com".

i don't what happen

@lucassouza16
Copy link

@lucassouza16 hi when i run this "yarn add lucassouza16/react-native-bluetooth-serial#latest"
something error:
error An unexpected error occurred: "https://raw.githubusercontent.com/lucassouza16/react-native-bluetooth-serial/b8060e718dc71ab50a89aadc28fca8d34d50dabe/package.json: getaddrinfo ENOENT raw.githubusercontent.com".

i don't what happen

This error is still very vague, are you sure that only this is returned?

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

9 participants