Skip to content

Latest commit

 

History

History
97 lines (70 loc) · 2.22 KB

DOC_PLAT_ANDROID_WEAR.md

File metadata and controls

97 lines (70 loc) · 2.22 KB
id title sidebar_label
androidwear
Android Wear Platform
Android Wear

Overview

  • Latest Android project
  • Kotlin Support
  • Support for Gradle 4.9

File Extension Support

Extension Type Priority
androidwear.watch.js form factor 1
watch.js form factor 2
androidwear.js platform 3
android.js platform 4
watch.native.js fallback 5
native.js fallback 6
js fallback 7
tsx fallback 8
ts fallback 9

Requirements

Project Configuration

Feature Version
Gradle 4.10.1
Android Gradle 3.3.1
Kotlin 1.3.20
Target SDK 27

Run

NOTE: make sure you have 1 android wear device connected or 1 wear emulator running

rnv run -p androidwear

NOTE: There is a bug in RN. for now you must NOT have running bundler ($ rnv start) in order for wear sim to work

Advanced

Clean and Re-build platform project

rnv run -p androidwear -r

Launch specific emulator:

rnv target launch -p androidwear -t Android_Wear_Round_API_28

Android X support

androidX is enabled by default

make sure you have this piece of script in package.json

"scripts" : {
  "postinstall": "jetify"
}

Hermes support

Hermes can be enabled or disabled with enableHermes prop in renative.json:platforms.androidwear.enableHermes or renative.json:platforms.androidwear.buildSchemes.[SCHEME].enableHermes

App Config

see: Android based config