Skip to content

Error on realtime service in react native #4893

Closed Answered by ganigeorgiev
apujayed asked this question in Q&A
Discussion options

You must be logged in to vote

This was answered several times. Please search for the other similar discussions.

In general you need to register EventSource polyfill, ex. react-native-sse:

import eventsource from "react-native-sse";

global.EventSource = eventsource;

Additionally, if you are testing on Android you may have to disable Flipper. See the links in #2484 (reply in thread)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by apujayed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants