Coder Social home page Coder Social logo

wilmxre / react-native-watch-connectivity Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mtford90/react-native-watch-connectivity

0.0 0.0 0.0 19.1 MB

Enable communication between apple watch app and react native

Home Page: http://mtford.co.uk/react-native-watch-connectivity/

License: MIT License

JavaScript 1.63% Ruby 4.12% C 0.15% Objective-C 22.06% TypeScript 61.46% Swift 10.59%

react-native-watch-connectivity's Introduction

React Native Watch Connectivity

Communicate with your Apple Watch apps over the React Native bridge.

Note: This library does not allow you to write your Apple Watch apps in React Native but rather allows your RN iOS app to communicate with a watch app written in Obj-C/Swift. If you want to build a Wear OS app using react-native refer to react-native-wear-connectivity.

Documentation

http://mtford.co.uk/react-native-watch-connectivity/

Demo

The featured screenshot is from the example app. To run the example:

git clone https://github.com/mtford90/react-native-watch-connectivity.git
cd react-native-watch-connectivity/example
yarn install
cd ios
pod install
cd ..
yarn ios # Run app
open ios/RNWatchExample.xcworkspace # Run watch app from Xcode

Install

npm install react-native-watch-connectivity --save
# or
yarn add react-native-watch-connectivity

Link

Note: this library now supports autolinking for RN 0.60+.

For RN <0.60 link via:

react-native link

Or else add the xcodeproj or .h/.m files directly to your project via XCode

Manual Linking

Or you can link the library manually by adding node_modules/react-native-watch-connectivity/ios/RNWatch.xcodeproj to your project and ensuring that libRNWatch.a is present in the Link Binary With Libraries build phase.

Alternatively, if you're using CocoaPods, you can add the following to your Podfile:

pod 'RNWatch', :path => '../node_modules/react-native-watch-connectivity'

and run pod install.

Expo Support

This library has been successfully used in Expo apps (Bare Workflow with EAS Build).

react-native-watch-connectivity's People

Contributors

mtford90 avatar dependabot[bot] avatar yolpsoftware avatar petrbela avatar walterholohan avatar jrdn91 avatar ataman11 avatar mdescalzo avatar khl3o avatar mars-lan avatar fabonreact avatar udfalkso avatar greenkeeper[bot] avatar saghul avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.