-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
feat: Add support for iOS #101
base: master
Are you sure you want to change the base?
Conversation
…cked checkSettings() and requestResolutionSettings(), added section to example app for testing all exposed functions
Unfortunately auto linking does not seem to be working yet. I will submit a new PR once fixed. |
…nd added xcode project
Fixed with latest commit |
@Jurpp this PR allows to check if the location service is enabled? |
@cinder92 No this won't do anything on iOS. It just ensures that your iOS build will not crash when using this library for the Android part of of your app. Currently when importing the library in your Javascript the iOS build crashes. |
@YsnKsy since it is fixing iOS crashes, could you please accept this merge request, please ? |
This Library would break on iOS (see #88). As most people create their app in React Native to build for iOS and Android simultaneously I created a Pod for iOS to mock the native calls. Besides that I added a platform check to bypass the
addListener
andonce
functions completely. The library now no longer crashes the iOS build.yarn example ios
can be used to start the example app in an iOS emulator. Linters and tests are passing.All we need to look at is whether autolinking is working correctly, the example app links the Pod manually at this moment.