Skip to content

Commit 70afcf0

Browse files
authored
Update README.md
1 parent 5c9fbd2 commit 70afcf0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ import com.google.android.gms.wearable.Wearable
6161
import org.json.JSONObject
6262
import com.google.android.gms.wearable.Node
6363

64-
class MainActivity : ComponentActivity(), MessageClient.OnMessageReceivedListener {
64+
class MainActivity : ComponentActivity(), MessageClient.OnMessageReceivedListener {
65+
66+
// MainActivity implementation ...
67+
6568
fun sendMessageToClient(node: Node) {
6669
val jsonObject = JSONObject().apply {
6770
put("event", "message")
@@ -85,6 +88,9 @@ import androidx.compose.runtime.mutableStateOf
8588

8689
class MainActivity : ComponentActivity(), MessageClient.OnMessageReceivedListener {
8790
var count by mutableStateOf(0)
91+
92+
// MainActivity implementation ...
93+
8894
override fun onMessageReceived(messageEvent: MessageEvent) {
8995
val jsonObject = JSONObject(messageEvent.path)
9096
val event = jsonObject.getString("event")
@@ -97,7 +103,7 @@ class MainActivity : ComponentActivity(), MessageClient.OnMessageReceivedListene
97103

98104
# How to run the example
99105

100-
I suggest you to try to run the example before doing your own implementation. You can try to modify the WearOS example and connect it to your mobile app following this instructions.
106+
I suggest you to try to run the example before doing your own implementation. You can try to modify the WearOS example and connect it to your React Native Mobile app following this instructions.
101107

102108
**How to run the React Native Mobile App example**
103109

0 commit comments

Comments
 (0)