Skip to content

Conversation

fabOnReact
Copy link
Owner

Summary

  • add wear OS connector to send and receive messages
  • document Wear OS setup and sample usage
  • include library in watch example dependencies

Testing

  • yarn lint src/wearos/WearOSConnector.ts src/index.tsx (fails: ESLint couldn't find the plugin "eslint-plugin-ft-flow")
  • yarn test (fails: Cannot find module '@react-native/babel-preset')

https://chatgpt.com/codex/tasks/task_e_68b7027861988320a0f0cb9e5a60ce62

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex Review: Here are some suggestions.

Reply with @codex fix comments to fix any unresolved comments.

About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".

* @param cb Optional callback invoked on success.
* @param errCb Optional callback invoked on error.
*/
send(message: Payload, cb?: ReplyCallback, errCb?: ErrorCallback) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P1] Pass required callbacks when delegating to sendMessage

The new helper declares cb and errCb as optional, but forwards them directly to sendMessage. sendMessage’s signature requires both callbacks, so under the repo’s strict TypeScript configuration this call produces TS2345: Argument of type 'ReplyCallback | undefined' is not assignable to parameter of type 'ReplyCallback' and the package no longer type-checks. Provide defaults or narrow the values before calling sendMessage so the build can succeed.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant