Skip to content

Commit

Permalink
fix codegen errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fabOnReact committed Feb 11, 2024
1 parent 6330629 commit ebe563e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example/android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
# your application. You should enable this flag either if you want
# to write custom TurboModules/Fabric components OR use libraries that
# are providing them.
newArchEnabled=false
newArchEnabled=true

# Use this property to enable or disable the Hermes JS engine.
# If set to false, you will be using JSC instead.
Expand Down
6 changes: 3 additions & 3 deletions src/NativeWearConnectivity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import type { TurboModule } from 'react-native';
import { TurboModuleRegistry } from 'react-native';

// Messages
export type Payload = Record<string, unknown>;
export type Payload = Object;
export type ReplyCallback = (reply: Payload) => void;
export type ErrorCallback = (err: Error) => void;
export type ErrorCallback = (err: string) => void;

const UNHANDLED_CALLBACK =
'The sendMessage function was called without a callback function. ';
Expand All @@ -16,7 +16,7 @@ const UNHANDLED_CALLBACK_ERROR =
export const defaultReplyCb = (reply: Payload) => {
console.log(UNHANDLED_CALLBACK + UNHANDLED_CALLBACK_REPLY, reply);
};
export const defaultErrCb = (err: Error) => {
export const defaultErrCb = (err: string) => {
console.warn(UNHANDLED_CALLBACK + UNHANDLED_CALLBACK_ERROR, err);
};

Expand Down

0 comments on commit ebe563e

Please sign in to comment.