Showcase of an established two-way communication between a React Native app and an Android Wear app using the MessageAPI.
git clone https://github.com/bevkoski/react-native-android-wear-demo.git
cd react-native-android-wear-demo
yarn
or npm install
react-native start
/react-native-android-wear-demo/android
folderapp
module as a run configurationapp
moduleIf you get one of the following error messages:
Could not connect to development server.
Could not get BatchedBridge, make sure your bundle is packaged properly.
Try executing adb reverse tcp:8081 tcp:8081
from the command line and reloading the app.
wear
module as a run configurationwear
moduleCheck out this Medium article.
Special thanks to @toteto for the implementation of the watch app and the extensive contribution to the native parts of the mobile app.