diff --git a/android/src/main/java/com/rnmovableink/RNMovableInkModule.kt b/android/src/main/java/com/rnmovableink/RNMovableInkModule.kt index 38c9b11..01fdcc1 100644 --- a/android/src/main/java/com/rnmovableink/RNMovableInkModule.kt +++ b/android/src/main/java/com/rnmovableink/RNMovableInkModule.kt @@ -57,16 +57,19 @@ class RNMovableInkModule(reactContext: ReactApplicationContext) : fun categoryViewed(properties: ReadableMap) { MIClient.categoryViewed(properties.toHashMap()) } + @ReactMethod fun productRemoved(properties: ReadableMap) { MIClient.productRemoved(properties.toHashMap()) } + @ReactMethod fun logEvent(name: String, properties: ReadableMap) { MIClient.logEvent(name, properties.toHashMap()) } + @ReactMethod - fun checkPasteboardOnInstall( promise: Promise) { + fun checkPasteboardOnInstall(promise: Promise) { MIClient.checkPasteboardOnInstall { resolved -> promise.resolve(resolved) } diff --git a/example/src/App.tsx b/example/src/App.tsx index 45417c6..735822e 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -6,7 +6,7 @@ export default function App() { const [link, setLink] = React.useState(); React.useEffect(() => { - // Make sure to call RNMovableInk.start when your app start + // Make sure to call RNMovableInk.start when your app starts RNMovableInk.start(); // Get the deep link used to open the app @@ -59,6 +59,18 @@ export default function App() { RNMovableInk.productSearched({ query: 'Test Event' }); }} /> + +