Skip to content

Commit

Permalink
fix(android): Remove doubled-up 'PortalsSubscription:' prefix that was
Browse files Browse the repository at this point in the history
causing Android pub/sub to not emit properly
  • Loading branch information
Steven0351 committed Oct 2, 2023
1 parent bbc42cc commit 4c2725f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 16,176 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,5 @@ lib/
example/android/app/src/main/assets
.vercel
docs/

package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ internal class PortalsPubSubModule(reactContext: ReactApplicationContext) :
val ref = PortalsPubSub.shared.subscribe(topic) { result ->
reactApplicationContext
.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter::class.java)
.emit("PortalsSubscription:$eventName", result.toJSObject().toReactMap())
.emit("$eventName", result.toJSObject().toReactMap())
}

subscriptionRefs[eventName] = ref
Expand Down

0 comments on commit 4c2725f

Please sign in to comment.