Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[expo-modules-core] Add web implementation for eventemitter #27595

Merged
merged 13 commits into from
Mar 18, 2024

Conversation

aleqsio
Copy link
Contributor

@aleqsio aleqsio commented Mar 12, 2024

Why

We need a web implementation to provide the same API for web modules that expo-modules-core provides for native modules.

How

Added a web only CoreModule that is injected into globalThis and provides an EventEmitter class with a JS only event emitter implementation.

Test Plan

Added unit tests.

Checklist

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Mar 12, 2024
@aleqsio aleqsio marked this pull request as ready for review March 14, 2024 14:42
@aleqsio aleqsio requested a review from tsapeta March 14, 2024 14:43
Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Mar 14, 2024
@aleqsio aleqsio merged commit 886b432 into main Mar 18, 2024
9 of 10 checks passed
@aleqsio aleqsio deleted the @aleqsio/eventemitter-for-web branch March 18, 2024 09:40
@brentvatne brentvatne added the published Changes from the PR have been published to npm label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: fingerprint compatible bot: passed checks ExpoBot has nothing to complain about published Changes from the PR have been published to npm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants