react-native-ble-advertiser icon indicating copy to clipboard operation
react-native-ble-advertiser copied to clipboard

Updated Example to run properly

Open finnholland opened this issue 1 year ago • 2 comments

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)

finnholland avatar Jul 07 '23 03:07 finnholland

@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?

leodevbro avatar Jul 07 '23 09:07 leodevbro

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.

finnholland avatar Jul 07 '23 10:07 finnholland