react-native-ble-advertiser
react-native-ble-advertiser copied to clipboard
Updated Example to run properly
Updated the example in the project so that it works again, apparently it was broken.
Setting up the project can be done using npm pack && cd example && yarn
or npm pack && cd example && yarn && cd ios && pod deintegrate && pod install
also made a suffix const and changed to react-native-permissions as it handles the permissions for android 12 well. (feel free to reject if you disagree)
@fhllnd, Thanks so much. It seems working. I'll continue testing and some experiments and keep you updated.
I have Android and Windows, but I don't have iPhone and Mac, so I guess I cannot test it on iOS easily. But anyway, I'll try to buy iPhone and Mac soon.
I come from ReactJS, but I am kinda new to React Native, I am learning it now, so, please forgive me for some beginner questions:
cd ios && pod deintegrate && pod install
I should run it anyway even if I am using Windows and Android, right? Because finally the code should be compiled into both: Android and iOS package, right?
Nah that's all good no need to run that if you're not doing iOS :)
edit the commands also wont work on windows since they're mac only but if you needed to do iOS in prod or out of curiosity I've used VMWare for MacOS before and it was usable (a bit slow as it uses CPU only...) heres the link to unlock MacOS as it's behind a paid version.