how to fix error when install bluetooth-escpos-printer? - printing

I want to make my app, can print so I have run npm install react-native-bluetooth-escpos-printer --save
as enter link description here documentation.
after that I want to make it sure that my project running well after it,
but I found error like , and when I try to link the project the error using this command react-native link react-native-bluetooth-escpos-printer
it also bring me to the another error like Unrecognized command "link".
i dont have idea hot to fix it, please anyone can tell what am I suppose todo

Since no one is maintaining this package. I used https://github.com/januslo/react-native-bluetooth-escpos-printer/pull/114 which is one of the PR for this package which resolved the insecure protocols and used https://www.npmjs.com/package/patch-package to keep the changes. Hope it helps!

Related

Failed to install an auto prefixer extension for brackets

I have created my web page, and I need to simplify a manual work for prefixes by installing autoprefixer in my bracket code editor. I have tried to install it in two ways, one by pressing installation button found from search, and by copying github link.
below is a screenshot. Please anyone who can help me to solve this problem. Thanks
What I did is to close my editor and restart in again, then everything work fine

React native QRCode scanner integration problem

im trying to integrate react-native-qrcode-scanner into my project. I do all they say in the installation guide but get following error :
I see that this line of code inside this library fails :
return PermissionsIOS.requestPermission(
PermissionsIOS being imported as
const PermissionsIOS = NativeModules.ReactNativePermissions
So it seems like permissions was not loaded into the project.
Any ideas?
Ok, I found it. The thing is that by some strange reason react-native link react-native-permissions didnt work out. I've read installation on react-native-permissions's page. It says that one of 3 following must be done :
Installation via pods - made only worse
running react-native link react-native-permissions - didnt work in first place
Manual linkage with XCode
Only 3rd alternative did the trick for me.

How do I manually add Pods/Headers/Public to the Header Search Paths configuration?

I ejected from expo.
I ran ‘react-native link’ in the terminal
I moved into the iOS folder and ran ‘pod install’ in the terminal.
Then I opened the padel.xcworkspace in xcode. When I try and build the app
I get an error that says the React/RCTBridgeModule.h file is not
found.
After much googling I understand that I need to “manually add
Pods/Headers/Public to the Header Search Paths configuration” as
described in the expo docs
https://docs.expo.io/versions/latest/guides/expokit.html#changing-native-dependencies
I have absolutely no idea how to do this. Can someone please help me?
When I click on the error message in build time this is what I see:
Where am I supposed to add ‘Pods/Headers/Public’
My best guess is that I have to add an additional path in the ‘Header Search Paths’ section. The problem is that I don’t understand where BUILT_PRODUCTS_DIR corresponds to so I don’t know how to walk it to the pods folder.
Any suggestions?
Finally found the answer to this on step 3 of the docs on manual linking in react native https://facebook.github.io/react-native/docs/linking-libraries-ios.html#manual-linking

Custom shell script '[CP] Embed Pods Frameworks' No such file or directory for framework

I am trying to use Firebase for notifications. And I followed all the steps to install the cocoapods and write the code and get the certificates.And yes I am using xcworkspace to run the program.
Now I am getting this error when I try to run the program. I have exhausted all the suggested solutions on Stack Overflow, from deleting the derived data to restarting xcode and even checking that the $1 has single quotes instead of double quotes as suggested by another answer.
My project name has an 'apostrophe' in its name. So I think that might be the problem. If yes, how do I solve it?
Also when we look closely at the error in the path, we can see that it says tabber.WhatsPoppin.app without the apostrophe. So I think that may be a possible cause of the problem. How do i change the path/rename the file if that is the problem?
There may be something else which might be cause the error. Feel free to suggest anything. I really need the help.
The fix is to get rid of the apostrophe in the directory name for your project. You can keep the apostrophe in the display name of the app, but everywhere else you should get rid of it.

How to set compiler correctly in build.sh for building VLC in iOS

Whenever I tried to change CC and CPP in build.sh(ImportedSources/VLCKit/MobileVLCKit/ImportedSources/vlc/extras/package/ios)
This error comes
"Cannot pull with rebase: You have unstaged changes.
Please commit or stash them."
What is the right way to change CC and CPP path? I am trying to build VLC for iOS.
But "C compiler not working message" comes every time I build for device(for simulator it works fine). I found an answer from VLC forum that this might be due to xcrun points to wrong compiler (https://forum.videolan.org/viewtopic.php?f=36&t=117736).
But I can't change path in build.sh:( . Is there another way to deal with this error.
Where can I change the compiler path so that my C compiler works. I have searched a lot for this error, still no luck. Please provide some guidance.
Thanks,
Sibinesh M.C
Delete the existing and repull.
Next time just check that you are using zsh or iTerm2 (recommended by VLC). Also check the path expected by script file is same as yours. If not add by sudo.
I also faced the same issue, but setting the path by sudo does the job for me.

Resources