Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cjsmith/react-native-connect-iq-mobile-sdk
This package provides a React Native wrapper around the Android and iOS Garmin Connect IQ Mobile SDKs
https://github.com/cjsmith/react-native-connect-iq-mobile-sdk
connect-iq react-native
Last synced: 10 days ago
JSON representation
This package provides a React Native wrapper around the Android and iOS Garmin Connect IQ Mobile SDKs
- Host: GitHub
- URL: https://github.com/cjsmith/react-native-connect-iq-mobile-sdk
- Owner: cjsmith
- License: mit
- Created: 2023-10-19T19:39:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-28T20:42:31.000Z (3 months ago)
- Last Synced: 2024-12-29T13:39:33.117Z (about 1 month ago)
- Topics: connect-iq, react-native
- Language: Objective-C
- Homepage:
- Size: 1.72 MB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-garmin - react-native-connect-iq-mobile-sdk - This package provides a React Native wrapper around the Android and iOS Garmin Connect IQ Mobile SDKs (2024-10-28) (Tools / Older resources)
README
# react-native-connect-iq-mobile-sdk
This package provides a React Native wrapper around the Android and iOS Garmin Connect IQ Mobile SDKs
## Installation
```sh
npm install react-native-connect-iq-mobile-sdk
```## Usage
Please see the example project for usage. It provides Android and iOS examples of all functionality in the SDK.
Also see the Garmin docs for background on the functionality.
# iOS
https://developer.garmin.com/connect-iq/core-topics/mobile-sdk-for-ios/
Note the XCode project setup required, which is also required for using this in react native. Please see the iOS example.
In particular, you need to handle the openURL method in your AppDelegate
```objective-c
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(nonnull NSDictionary *)options {
NSString* sourceApp = options[UIApplicationOpenURLOptionsSourceApplicationKey];
NSLog(@"Received URL from '%@': %@", sourceApp, url);RCTBridge *bridge = [RCTBridge currentBridge];
ConnectIqMobileSdk * connectIqMobileSdk = [bridge moduleForName:@"ConnectIqMobileSdk"];
return [connectIqMobileSdk handleOpenURL:url sourceApplication:sourceApp];
}
```# Android
https://developer.garmin.com/connect-iq/core-topics/mobile-sdk-for-android/
## Contributing
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
## License
MIT
---
Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)